thunguo opened a new issue, #90:
URL: https://github.com/apache/incubator-seata-go-samples/issues/90

   ## Scenario
   
   A user places an order on a shopping platform. The operation involves three 
services:
   
   - **order-service** — creates the order record
   - **inventory-service** — deducts product stock  
   - **account-service** — deducts the user's account balance
   
   All three operations must succeed or fail together. If the account balance 
is 
   insufficient, the already-deducted stock and the created order must both be 
   automatically rolled back.
   
   ## What to implement
   
   Three independent Go services, each with its own MySQL database. The 
order-service 
   acts as the global transaction initiator and calls the other two services 
via HTTP. 
   Seata-go's AT mode proxies each service's database connection and handles 
undo log 
   generation automatically — no manual rollback logic needed in business code.
   
   Include a failure simulation where account-service rejects the deduction, 
   and demonstrate that inventory and order are both rolled back.
   
   ## Deliverables
   
   - Three runnable Go services
   - docker-compose to start MySQL and Seata server
   - README explaining the scenario and how to run


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to