GitHub ProfileAll Projects
← Back to Work

Order Processor

Category

Event-Driven Backend

/

Year

2025

/Live Link

A four-service containerized commerce backend implementing multi-warehouse stock reservation, RabbitMQ AMQP asynchronous job queues, and automated vendor inventory synchronization.

Order Processor
TypeScriptNode.jsExpressRabbitMQ (AMQP)PostgreSQLDocker Compose

Decoupling High-Volume Order Ingestion

Flash sales and bursty checkout traffic can easily overwhelm synchronous monolithic databases. Order Processor decouples order ingestion from fulfillment across four isolated services: order-api, order-worker, vendor-sync, and vendor-mock.

When a POST /api/order request arrives, order-api validates stock availability across warehouses, reserves inventory atomically, and publishes an order payload onto a durable RabbitMQ queue.

Asynchronous Workers & Vendor Synchronization

Background order-worker consumers pull queued allocations from RabbitMQ to finalize fulfillment state transitions without blocking client HTTP responses.

Meanwhile, the vendor-sync service periodically reconciles external supplier inventory feeds into PostgreSQL, ensuring accurate multi-source stock allocation.

Order Processor full showcase

Production-Ready Container Topology

Orchestrated via Docker Compose with automated SQL schema initialization and health probes, the entire distributed pipeline boots reproducibly with a single command.

More Projects