–
A modular monolith rather than microservices: four FastAPI apps behind one nginx — /admin, /customer, /vendor and /chat — plus one worker process per RabbitMQ queue and a scheduler, all from one image and one database.
–
The chat gateway runs as its own process because WebSocket connections are long-lived — a few hundred idle sockets sharing the HTTP worker pool would starve the API. Fanout goes over Redis pub/sub, with presence, typing indicators and unread counts.
–
The booking state machine is the single source of truth for the lifecycle and for the contact-reveal rule, and is tested exhaustively alongside the reveal conditions.
–
Geo search over PostgreSQL 16 with PostGIS and GeoAlchemy2 — distance ranking from a neighbourhood or device location, with cached vendor cards and search results.
–
Redis carries one-time codes and their send throttles, sliding-window rate limits, a refresh-token denylist, the catalogue tree, idempotency keys and chat presence.
–
RabbitMQ workers for email, media processing, chat moderation and notifications, each with a dead-letter queue, plus a scheduler for timed sweeps such as stale requests.
–
Domain modules talk to each other through service functions and never import another module's SQLAlchemy models, keeping the option of splitting one out later without forcing it now.