How deeep095/rapid_delivery_service works
Rapid Delivery Service is a multi-warehouse ordering platform. Buyers and warehouse managers use the Flutter app; buyers discover nearby stock across warehouses, consolidate a cart, place an order, and receive asynchronous fulfillment. The backend separates availability, transactional order placement, and stock deduction, with Redis, OpenSearch, PostgreSQL, and a message broker serving distinct roles. The README documents monitoring dashboards and demand prediction, but their implementation files are absent from the supplied tree. Backend relationships below follow the documented architecture; the app's Dart sources were not supplied.
Main entry points: availability-service/main.py Availability API · order-service/main.py Order API · rapid_delivery_app Flutter App · fulfillment-worker/main.py Fulfillment Worker
Components 16
Client App
- Flutter App
rapid_delivery_app
Availability
- Availability API
availability-service/main.py - Warehouse Search
availability-service/main.py - Stock Aggregation
availability-service/main.py - Redis Stock
- OpenSearch Geo
Order Fulfillment
- Order API
order-service/main.py - Order Splitting
order-service/main.py - PostgreSQL
- Kafka / SQS
- Fulfillment Worker
fulfillment-worker/main.py
Operations
- Metrics
fulfillment-worker/main.py - Prometheus + Grafana
- Demand Prediction
availability-service/main.py
Other components
- Buyer
- Warehouse Manager
Connections 16
- Buyer → Flutter App: uses
README.md - Warehouse Manager → Flutter App: uses
README.md - Flutter App → Availability API: requests stock
README.md - Availability API → Warehouse Search: searches warehouses
README.md - Warehouse Search → OpenSearch Geo: queries locations
README.md - Availability API → Stock Aggregation: aggregates stock
README.md - Stock Aggregation → Redis Stock: reads stock
README.md - Flutter App → Order API: places orders
README.md - Order API → Order Splitting: splits orders
README.md - Order API → PostgreSQL: stores orders
README.md - Order API → Kafka / SQS: dispatches orders
README.md - Kafka / SQS → Fulfillment Worker: delivers messages
README.md - Fulfillment Worker → Redis Stock: deducts stock
README.md - Fulfillment Worker → Metrics: records metrics
README.md - Metrics → Prometheus + Grafana: exports metrics
README.md - Availability API → Demand Prediction: serves endpoint
README.md