How To Build Better Orchestrations With AWS Step Functions, Task Tokens, And Amazon EventBridge!
Working with Serverless often makes us feel like being part of a musical. There is orchestration, choreography, and in fact, serverless has its own musical and a folk song too!
Several patterns help us with serverless adoption. AWS Step Functions is often used to perform orchestration. Amazon EventBridge is helpful to choreograph multiple microservices, as discussed in my re:Invent talk below.
https://www.youtube.com/watch?v=HcbnrJdNBRI
These are not rules but general practices. There will be variations and exceptions depending on individual use cases.
Loyalty Service Platform
Shown below is a high-level view of a Loyalty Service platform. It has a set of APIs, several set-piece microservices, and an external SaaS application.
These microservices are loosely coupled and communicate via custom events routed by EventBridge.
For our discussion, we will focus on the Order Processing and Vendor Mediator services. These two services, though decoupled…