Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 781 Bytes

README.md

File metadata and controls

34 lines (25 loc) · 781 Bytes

saga-example

Example of system with orchestrated saga:

How to run

# run system
docker compose up --build

# open transaction manager UI
open http://localhost:36789

# create new customer
curl -X POST http://127.0.0.1:8090/create

# create new order
# response example {"gid":"GVLr2EBtAfUbfvANGybpdL"}
curl -X POST http://127.0.0.1:8091/create -H 'Content-Type: application/json' -d '{  
  "idCustomer": 1,
  "amount": 10,
  "currency": "BTC"
}'

# see GVLr2EBtAfUbfvANGybpdL in transaction manager

Links