We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e14eed commit 4d67127Copy full SHA for 4d67127
1 file changed
docs/week2/02-sequence-diagrams.md
@@ -284,8 +284,9 @@ sequenceDiagram
284
285
OrderFacade ->> OrderService: createOrder(userId, items)
286
OrderService -->> OrderFacade: OrderEntity
287
-
288
- OrderFacade ->> ProductService: decreaseStock(productId, quantity)
+
+ %% Atomic Update 실행UPDATE product SET stock = stock - ? WHERE id = ? AND stock >= ?
289
+ OrderFacade ->> ProductService: decreaseStock(productId, quantity) (Execute Atomic Updates)
290
ProductService -->> OrderFacade: success
291
292
OrderFacade ->> PointService: deductPoints(userId, totalPrice)
0 commit comments