
2026shop
OrderFlow
Event-driven e-commerce platform built as three Spring Boot microservices communicating through Apache Kafka. Demonstrates production-grade reliability patterns - Transactional Outbox, idempotent consumers (exactly-once processing) and Saga choreography - deployed live on AWS.
Architecture
Event-driven microservices (Kafka Saga) + Next.js
Features
- Three Spring Boot microservices (product, order, fulfillment) communicating via Apache Kafka
- Transactional Outbox pattern - reliable event publishing without the dual-write problem
- Idempotent consumer (Redis SET NX) - exactly-once order processing
- Saga choreography with compensating transactions and retry / dead-letter topics
- Polyglot persistence: MongoDB (products), PostgreSQL (orders), Redis (cart)
- Managed cloud services: Confluent Kafka, MongoDB Atlas, Neon, Upstash - deployed on AWS EC2
- Tested with Testcontainers, 80% coverage, green CI on GitHub Actions