Production architecture
What separates a system running for real users from a demo: environments, deploys, monitoring, backups, secrets and a readiness checklist.
The shop window. A customer opens it on a laptop or phone.
That is the part everyone sees, and it hides everything behind it. Production architecture is the whole shop as it runs for real customers: not just the window, but the stock room, the locks, the cameras and who is on call.
How it works
Production architecture is the system as it actually runs for real users. It covers more than the boxes in a diagram: environments, deploys, monitoring, backups, secrets and on-call.
A typical shape for a small product:
DNS → CDN / edge → app (stateless, autoscaled) → managed Postgres (backups, PITR)
↘ queue / jobs → workers
↘ object storage
Observability: logs · metrics · traces · error tracking · uptime + status page
Each part has its own note: DNS, CDN, stateless apps, backups, asynchronous processing, object storage and observability.
What separates it from a demo
- Separate development, preview and production environments, each with its own secrets and data.
- Continuous integration with tests and required checks.
- Repeatable deploys, and a way to roll back.
- Rate limits, cost alerts, security headers and dependency updates.
A readiness checklist
Before calling something production ready, I go through these groups.
- Traffic. Expected users, peak traffic and the read to write ratio.
- Application. Stateless where appropriate, authentication and authorisation designed, rate limiting considered, pagination in place.
- Database. Access patterns identified, indexes created, query performance checked, a backup strategy defined, replication considered if needed.
- Cache. Use case, TTL and invalidation defined, and what happens if the cache is down.
- Reliability. Health checks, timeouts on every external call, retries with backoff, idempotency where required and handling for failure, not just the happy path.
- Infrastructure. Load balancing, a CDN, object storage and background workers, each only if required.
- Observability. Logs, metrics, error monitoring, alerts and tracing where useful.
- Security. HTTPS everywhere, secrets outside source control, input validation at every boundary and least privilege for database users and keys.
Who is on call
Someone must be able to answer when an alert fires. For a small team that may be one person, so the runbook matters: what to check, how to roll back and how to restore from backup.
Secrets and configuration
Secrets live in a secrets manager or the hosting platform's encrypted settings, never in the repository. Each environment gets its own, so a leak in preview does not expose production. Rotate them on a schedule and after any suspected exposure. Configuration that differs between environments, such as URLs and limits, comes from the environment and not from branches in the code, which keeps what you tested the same as what you ship.
Where I used it
I haven't shipped this in a public project yet.
PeopleCore HR is live, but its case study does not document its environments, deploys or monitoring, so I make no claim about them. IMS and POS SaaS are in progress and early-stage, and I make no production claim for either. The checklist above is what I would run through before a first paying customer.
Trade-offs
- Do not build a multi-region, cluster-scale setup for a prototype. Managed services cover most needs, at lower cost and with less to operate.
- A checklist can become theatre. A ticked box is not evidence. Test the restore, trigger the alert and run the rollback.
- Separate environments cost money and care. They also prevent the worst mistakes, such as testing against real customer data.
- More moving parts, more to fail. Each box in the diagram is something to monitor and pay for.
- Readiness is relative. A tool for ten internal users needs less than a public product taking payments. Write down the requirement first.
A useful rule: decide what production means for this product before the first paying customer, and prove each item on the list instead of assuming it.