System architecture
Clients, an API layer, domain services, background jobs and integrations — each with a single responsibility.
- Web, mobile and bot clients are thin. Business rules never live in the interface.
- Every client talks to one API layer, which authenticates, validates and versions requests.
- Domain services own the business rules and persist state in a relational database.
- Slow or external work — notifications, payments, AI calls — is moved to background jobs.
All deep dives