Software Development
A Practical Reference Architecture for Web Applications in 2026
A sensible default architecture for business web applications: modular monolith, managed database, background jobs, caching, authentication, observability and CI/CD, plus when to deviate from it.

In shortFor most business web applications, a good default in 2026 is a modular monolith (one deployable backend with clear internal modules), a managed relational database, a background job queue, a cache, a frontend served through a CDN, authentication through a proven identity provider or library, and observability and automated deployment from day one. Split into microservices only when a specific scaling or team problem forces you to.
A lot of the architecture diagrams you’ll find online were drawn for companies with hundreds of engineers. If you’re a team of three to eight people trying to ship, copying them is more likely to slow you down than help. What follows is the setup we’d sketch on a whiteboard for a small team, along with why each piece is there and the signs that it’s time to change it.
The architecture at a glance
| Layer | Default choice | Why |
|---|---|---|
| Frontend | A modern framework with server-side rendering where SEO matters, served via a CDN | Fast first load, crawlable public pages |
| API | REST over HTTPS, documented with OpenAPI | Simple, cacheable, one contract for web and mobile |
| Backend | Modular monolith | One deployment, clear boundaries, easy to refactor |
| Database | Managed PostgreSQL (or MySQL) | Transactions, mature tooling, backups handled for you |
| Background work | Job queue with workers | Email, reports, imports and AI calls stay off the request path |
| Cache | In-memory store such as Redis or Valkey | Sessions, rate limits, expensive queries |
| Files | Object storage with signed URLs | Cheap, durable, keeps uploads off app servers |
| Auth | Identity provider or well-maintained library | Password storage, MFA and SSO are easy to get wrong |
| Observability | Logs, metrics and traces, e.g. with OpenTelemetry | Find problems before customers report them |
| Delivery | CI/CD pipeline, infrastructure as code | Repeatable, reviewable releases |
Why a modular monolith first
Microservices solve real problems: independent scaling, independent deployment by separate teams, and isolation of failures. They also bring network calls between services, distributed data, harder debugging and more infrastructure to run. For a team of a few developers, that overhead usually outweighs the benefits.
A modular monolith gives you most of the structure without the overhead. Each business area (billing, users, orders, reporting) lives in its own module with its own code and tables, and modules talk through defined interfaces rather than reaching into each other’s data. If one module later needs to become a separate service, the boundary already exists.
Data: one relational database, used well
- Use a managed service so backups, patching and failover are handled. Test restoring a backup at least once; an untested backup is a hope, not a plan.
- Run schema migrations through code, reviewed like any other change.
- Add read replicas or search engines only when needed, for heavy reporting or full-text search.
- Decide tenancy early if you are building SaaS. Our guide to tenant isolation in a SaaS database covers the options.
Keep slow work off the request path
If a user clicks “Generate report” and the server takes 40 seconds, the request may time out and the user will click again. Put slow work in a queue: the app records the job, returns immediately, and a worker processes it and notifies the user when done. The same applies to sending email, importing files, calling AI models and syncing with other systems. Make jobs safe to retry, because workers will occasionally run the same job twice.
Configuration and environments
The Twelve-Factor App principles are older than most current frameworks and still hold up: keep configuration in the environment, not in code; treat the database and other services as attached resources; keep development, staging and production as similar as possible. In practice that means at least three environments, secrets in a secrets manager, and no credentials in the repository.
Security built into the architecture
- HTTPS everywhere, with secure cookies and sensible security headers.
- Authorisation checks on every API endpoint, server-side, never only in the UI.
- Least-privilege database and cloud roles for the application.
- Dependency scanning in the CI pipeline.
- Rate limiting on login and other sensitive endpoints.
For a structured checklist, the OWASP Application Security Verification Standard (ASVS) lists requirements by level, so you can choose the depth that matches your risk.
Observability: know before your users do
Three signals matter. Logs say what happened, metrics show trends such as error rate and response time, and traces follow a single request through the system. OpenTelemetry is the open standard for collecting all three without locking you into one vendor. Start with alerts on error rate, slow responses, failed jobs and database health.
When to deviate from the default
| Signal | Change to consider |
|---|---|
| One module needs far more compute than the rest (e.g. video or AI processing) | Extract it as a separate service or worker pool |
| Several teams block each other on releases | Split along module boundaries into services |
| Heavy analytics slow the main database | Read replica or separate analytics store |
| Real-time collaboration or live dashboards | WebSockets or server-sent events layer |
| Very spiky, event-driven workloads | Serverless functions for those parts |
| Strict data residency by customer | Regional deployments |
For a broader checklist across reliability, security, cost and performance, the AWS Well-Architected Framework is useful even if you host elsewhere.
Frequently asked questions
Is a monolith “old-fashioned”?
No. A well-structured monolith is a deliberate choice for small and medium teams. Many successful products ran as monoliths for years before splitting anything out.
Which programming language should we use?
One your team knows well and can hire for. The architecture above works in any mainstream backend language.
Do we need Kubernetes?
Rarely at the start. Managed platforms that run containers for you are simpler for small teams. Kubernetes makes sense when you run many services and have people to operate it.
How does this affect cost?
A simpler architecture means fewer moving parts to build, host and maintain. See web application development cost for the full picture.
Further reading
Planning a new web application?
VisionColab designs and builds web applications that start simple and scale when they need to. See our web development services or book a free consultation to review your architecture.
Written by the VisionColab team
VisionColab designs and builds AI, web, mobile and cloud software for businesses. Our guides explain the decisions, costs and trade-offs involved in planning a software project.


