Step Functions orchestrates ledger updates and M-Pesa payment via API Gateway/Lambda. On failure it runs compensating tr...
Step Functions orchestrates ledger updates and M-Pesa payment via API Gateway/Lambda. On failure it runs compensating transactions to prevent inconsistent balances.
This diagram shows how you ensure financial integrity. Instead of a single, risky transaction, the "Orchestrator" (the brain) manages a sequence of steps. If the payment fails at the final gate, the orchestrator triggers a "Compensating Transaction" to reverse the previous steps, ensuring no member's money is lost in "transit." • Key Services: AWS Step Functions (Orchestrator), Lambda (Ledger Service), API Gateway (M-Pesa Integration). • Architectural Value: Prevents data inconsistency in high-concurrency mobile money environments.
Sign in to join the discussion
Sign in to commentBe the first to comment
Share your thoughts on this architecture
Andrew Mwangi
@drew
Open an interactive version — fork it, generate AI variants, or share it with your team.
Make this template your own
Takes 30 seconds • No credit card required
Estimated monthly cost
$63.48/month
17 cloud services in this architecture
Ready to build this?
Clone this architecture into your workspace and deploy it to your cloud account.
Takes 30 seconds • No credit card required
Please create a cloud architecture for an ad network. Features that we need include: user authentication on our…
Design a serverless e-commerce platform with real-time inventory management. Use AWS Lambda for order processing,…
Create a global e-commerce platform with multi-cloud redundancy. Use AWS in us-east-1 for the primary application with…
Create a basic web application on AWS with EC2 instances behind an Application Load Balancer, using RDS for the…