10000 Check concurrent issues · Issue #20 · arconsis/ecommerce · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Dec 1, 2023. It is now read-only.
This repository was archived by the owner on Dec 1, 2023. It is now read-only.
Check concurrent issues #20
Open
Open
@eldimious

Description

@eldimious
  • Scenario 1: When we update status we first try to find -> this can lead to concurrent issues -> we need either pessimistic or optimistic lock or just update
  • Scenario 2: Idempotent API -> avoid duplicated orders (we use unique constraint basket_id + proceed events) / payments (proceed events + unique constraint order_id + psp deduplicated key)
  • Scenario 3: Multiple uses try to order same product at same time -> pessimistic lock, optimistic lock, database constraint (stock constraint)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0