About the Project
- This project is a production-grade e-commerce backend system built using a microservices architecture with Django REST Framework and Docker. It consists of independently deployable services—including authentication, product management, inventory, cart, order, and payment—each owning its own database and communicating through secure APIs and event-driven messaging.
- The system implements the Saga Pattern to manage complex checkout workflows, ensuring consistency across services during failures. It is enhanced with Redis caching, RabbitMQ-based asynchronous communication, and a fully containerized infrastructure, making it scalable and resilient. Additionally, the platform includes an API Gateway for request routing and a complete observability stack with logging, metrics, and distributed tracing, reflecting real-world, cloud-native backend engineering practices.
Methods I followed when I start microservice archtecture
- Mapping the component
Identifing the business requirements (services),
Functional Autonomy,Data Entity, Data Autonomy
- Defining Communication Pattern
1-to-1 syc, 1-to-1 Async
- Tech Stack
Language, DB, Cache, Object Store
- Deploying Microservice
CI/CD
Contaiers
Ochestrator
Key Features
- Microservices architecture with independent services
- Event-driven communication using RabbitMQ
- Saga pattern for distributed transactions
- Secure service-to-service authentication (JWT, RS256)
- API Gateway with rate limiting and security headers
- Redis caching for high-performance reads
- Distributed tracing and centralized logging
- Kubernetes deployment with autoscaling support
- Retry mechanism and Dead Letter Queue (DLQ) for reliability
Event-Driven Architecture
- The system uses RabbitMQ for asynchronous communication:
- `order.created`
- `payment.completed`
- `payment.failed`
Future Improvements
- Implement recommendation system
- Add email/notification service
- Implement user-level rate limiting
Screenshots
.png)
.png)
.png)
.png)
Project Demo
Technology I used
- Python / Django / DRF
- React.js / React Query
- PostgreSQL
- Docker
- Nginx
- Figma
- Api test & Documentation : Swagger + Postman
- Message : Broker RabbitMq
- Orchestration : Kubernetes
- Monitoring : Prometail + Loski + Grafana
- Tracing : Jeager