Baraza SACCO The Saga Pattern (Distributed Transaction Management)

Step Functions orchestrates ledger updates and M-Pesa payment via API Gateway/Lambda. On failure it runs compensating tr...

72 views
Viewed 72 times
0

Create a free account to remix this architecture

Sign up freeor sign in

Baraza SACCO The Saga Pattern (Distributed Transaction Management)

Step Functions orchestrates ledger updates and M-Pesa payment via API Gateway/Lambda. On failure it runs compensating transactions to prevent inconsistent balances.

advanced
AWS

Tags

#serverless
#saga
#payments
#step-functions
#consistency

Architecture Description

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.

Community Discussion

Sign in to join the discussion

Sign in to comment

Be the first to comment

Share your thoughts on this architecture

AI Analysis(1)

AI Review
Tradeoff

about 2 months ago

I appreciate the approach you've taken with the Saga Pattern to manage distributed transactions and ensure financial integrity within Baraza SACCO. However, I see a significant concern with your reliance on AWS Step Functions as the orchestrator.

AM

Andrew Mwangi

@drew

View portfolio
Try it in the Playground

Open an interactive version — fork it, generate AI variants, or share it with your team.

What You'll Get

Editable diagram in your workspace
Interactive cost estimates
AI-powered customization
Save and share your version

Start Customizing

Make this template your own

Takes 30 seconds • No credit card required

Share

Statistics

Views
72
Clones
0
Likes
0

Details

Category
serverless

Estimated monthly cost

$63.48/month

Published
1/28/2026

Services Used

17 cloud services in this architecture

RouteTable
SecurityGroup
APIGateway
Lambda
StepFunctions
DynamoDB
SQS
SNS
SecretsManager
KMS
CloudTrail
GuardDuty
SecurityHub
CloudWatchAlarm
InternetGateway
WAF
NATGateway

Ready to build this?

Clone this architecture into your workspace and deploy it to your cloud account.

Takes 30 seconds • No credit card required

You Might Also Like

Cloud Architecture for Ad Network with Authentication
381

Cloud Architecture for Ad Network with Authentication

Please create a cloud architecture for an ad network. Features that we need include: user authentication on our…

AWS
AZURE
Serverless E-Commerce Platform with Real-Time Inventory
216

Serverless E-Commerce Platform with Real-Time Inventory

Design a serverless e-commerce platform with real-time inventory management. Use AWS Lambda for order processing,…

AWS
Global E-Commerce Platform with Multi-Cloud Failover
186

Global E-Commerce Platform with Multi-Cloud Failover

Create a global e-commerce platform with multi-cloud redundancy. Use AWS in us-east-1 for the primary application with…

AWS
AZURE
GCP
Scalable 3-Tier Web Application
151

Scalable 3-Tier Web Application

Create a basic web application on AWS with EC2 instances behind an Application Load Balancer, using RDS for the…

AWS