A simple saga pattern example using Go and https://github.com/cikupin/go-saga library.
- Apache kafka (as a saga log storage)
$ go run main.go main # run saga orchestrator (port 8000)
$ go run main.go item # run item service (port 8001)
$ go run main.go order # run order service (port 8002)
$ go run main.go payment # run payment service (port 8003)
Endpoint : http://localhost:8000/normal-flow
Endpoint : http://localhost:8000/purchase-failed
Endpoint : http://localhost:8000/order-failed
Endpoint : http://localhost:8000/payment-failed