High-throughput payment processing system handling 10K+ TPS
Technology Stack
PHPGoRedisMySQLKafkaAWS ECSTerraform
Overview
Designed and built a distributed payment gateway for Airtel's digital ecosystem. The system processes real-time transactions with built-in retry mechanisms, idempotency checks, and comprehensive monitoring.
Key technical achievements include implementing circuit breaker patterns, distributed caching with Redis, and seamless failover across availability zones.
Architecture
Microservices architecture with API Gateway pattern. Services communicate via Kafka for async processing and gRPC for sync calls.
Key Challenges
Handling idempotency in distributed systems. Implemented deduplication using Redis with TTL-based request tracking.
Scaling Decisions
Horizontal scaling via ECS auto-scaling groups. Read replicas for MySQL. Redis Cluster for cache layer.