Backend / DevOps
CRUD Master
A simple Python microservices platform combining REST APIs, RabbitMQ, and databases deployed across isolated virtual machines using Vagrant.
- Python
- Flask
- PostgreSQL
- RabbitMQ
- Vagrant
- PM2
Overview
CRUD Master is a microservices-based backend project that simulates the infrastructure of a movie streaming platform.
The system is composed of three independent services: an Inventory API responsible for managing movie data, a Billing API responsible for asynchronously processing orders, and an API Gateway that provides a single entry point for clients.
The project explores both synchronous and asynchronous service communication. Inventory operations are forwarded through HTTP, while billing requests are published to a RabbitMQ queue and processed independently by the Billing service.
Each component runs inside its own virtual machine using Vagrant, providing clear isolation between services and their infrastructure.
Features Implemented
- Built a RESTful Inventory API supporting complete CRUD operations for movie data.
- Added movie search functionality using title-based query parameters.
- Integrated PostgreSQL databases for persistent movie and billing data.
- Used SQLAlchemy as the ORM layer for database interactions.
- Implemented an API Gateway as the central entry point for client requests.
- Forwarded Inventory API requests through HTTP while preserving service responses.
- Implemented asynchronous billing operations using RabbitMQ.
- Created a Billing consumer that processes queued JSON messages and persists orders to PostgreSQL.
- Added RabbitMQ message acknowledgments after successful processing.
- Supported durable billing workflows where requests remain queued while the Billing service is unavailable and are processed after it restarts.
- Isolated the gateway, inventory, and billing services across three separate virtual machines.
- Automated development infrastructure using Vagrant and provisioning scripts.
- Centralized service configuration and credentials using environment variables.
- Managed Python services with PM2 for process monitoring, restarting, and resilience testing.
- Tested REST endpoints using Postman.
Technical Highlights
- Designed a microservices architecture with separate Gateway, Inventory, and Billing services.
- Combined synchronous HTTP communication with asynchronous RabbitMQ messaging.
- Used PostgreSQL with isolated databases for Inventory and Billing services.
- Implemented resilient billing processing with queued messages surviving service downtime.
- Provisioned isolated environments using Vagrant and managed Python services with PM2.
- Documented the API Gateway with OpenAPI and tested endpoints using Postman.