This example demonstrates stateful resilience patterns in a REST environment. A payment (micro-)service can retrieve payments if called via REST. It requires an upstream REST service to charge credit cards.
This simple call-chain is great to demonstrate various important resilience patterns.
See introduction for the storyline / patterns behind this demo.
- Node.js
- Express
- TypeScript
- Brakes
- Zeebe on Camunda Cloud
pnpm i
With Camunda Cloud:
- Copy the environment variables from the Camunda Cloud Console for your client connection.
- Set them in your environment.
- Follow the instructions in stripe-fake/README.md to start the upstream credit card charging service.
- Start this microservice:
npm run start
Now the different versions of the payment service are available:
You can now issue a PUT
with an empty body:
curl \
-H "Content-Type: application/json" \
-X PUT \
-d '{}' \
http://localhost:8100/api/payment/v1