Skip to content
Grocito
← All posts

Web Application Architecture Basics for Business Owners

By Grocito

Web Application Architecture Basics for Business Owners

Web application architecture is the way a web app's parts fit together: the browser front end, the back-end server logic, the database, APIs and supporting services such as file storage, queues and caching. For most business applications, a well-structured single codebase (a monolith) is the sensible starting point. Understanding the parts helps you ask better questions and avoid paying for complexity you do not need.

Key takeaways

  • A web app has a front end, back end, database and usually several supporting parts such as authentication, file storage, background jobs and third-party services.
  • A well-structured monolith is often the right first architecture. Microservices solve problems most young products do not have yet.
  • Keep development, staging and production environments separate so that mistakes do not reach customers.
  • Scaling means a bigger machine (vertical) or more machines (horizontal). Design for the second only when needed.
  • Ask vendors for diagrams, documentation, backup details and handover arrangements, and keep ownership of your accounts and code.
  • Over-engineered and under-engineered systems both cost money, and the signs are visible.

What are the parts of a web application?

Think of a web app as a restaurant: each part has a job.

Front end (the browser)

Everything the user sees and touches: pages, forms, buttons and menus. It runs in the visitor's browser and asks the back end for data. It should never be trusted to enforce rules, because users can modify what runs on their own device.

Back end (server logic)

The back end applies your business rules: pricing, permissions, workflows and validation. It receives requests, decides what is allowed, reads or writes data and responds. This is the kitchen: customers never see it, but quality depends on it.

Database

The database is the application's memory: customers, orders, products and settings. Protecting and backing it up is vital.

APIs

An API is a defined way for one piece of software to ask another to do something. The front end calls your back-end API, and your back end may call third-party APIs for payments, email or maps. Our comparison of REST and GraphQL explains two common styles.

Authentication and authorisation

Authentication answers "who are you", and authorisation answers "what are you allowed to do". See authentication, roles and SSO for business apps.

File storage

Uploaded documents, images and exports usually live in dedicated file storage rather than the database.

Background jobs and queues

Some tasks should not make a user wait: sending emails, generating reports, processing images. The app places them in a queue, and separate workers process them in the background, retrying on failure.

Caching

A cache keeps frequently needed results in fast storage so the app does not repeat expensive work. The trade-off is that cached data can briefly be out of date.

Third-party services

Payments, email, SMS, maps, analytics, search and AI features are often bought rather than built. They save time but create dependencies, so know which ones you rely on and what happens if one fails.

Monolith or microservices: which is right?

A monolith is one application deployed as a single unit. Microservices split the system into many small services that communicate over a network, each deployed independently.

Microservices can help large organisations with many teams that need to release independently, or when one component has very different scaling needs. They also bring heavy costs: network failures between services, harder debugging, more deployments and the need for strong automation and monitoring.

For a young product with one team, a well-structured monolith is usually faster to build, easier to understand and cheaper to run. Clear modules with sensible boundaries make it possible to split pieces out later. If your product serves many customer organisations, see multi-tenant SaaS architecture basics too.

What are development, staging and production environments?

  • Development: where developers build and experiment on their own machines.
  • Staging (or test): a copy of the live setup, used for testing and for your approval before release.
  • Production: the real system your customers use.

Keep them separate, with separate databases and credentials, and never make editing production directly a habit. Reliable releases usually come from an automated pipeline; see CI/CD and DevOps basics for small teams.

How does scaling work?

  • Vertical scaling: giving a server more power, such as more memory. It is simple, and has a ceiling.
  • Horizontal scaling: running several copies of the application behind a load balancer. It handles more growth and adds resilience, but the app must be designed so any copy can serve any request.

Most businesses go a long way with a sensibly sized single setup, careful database design and caching.

Where does state live?

State is what the system remembers: who is logged in, what is in a basket, what has been paid. Knowing where it lives is crucial for scaling and recovery.

  • In the database, which is durable and shared.
  • In file storage, for uploaded and generated files.
  • In a session or cache store, which is fast and can be rebuilt.
  • Inside a single server's memory or disk, which is a warning sign: if that server dies or you add a second one, the state is lost or inconsistent.

What are single points of failure?

A single point of failure is one component whose failure takes the whole system down: a database with no tested backup, a server with no replacement plan, one person who holds all the passwords, an expired certificate or a third-party service with no fallback. List them and decide for each whether to accept, reduce or add redundancy. Monitoring and observability helps you notice problems early.

Where are the security boundaries?

Treat everything arriving from a browser, app or external service as untrusted until the back end checks it. Keep the database off the public internet, store secrets outside the code and give each component only the access it needs. Our API security checklist covers the interface in more detail.

What should you ask a vendor about architecture?

  1. Can I see an architecture diagram and documentation?
  2. Who owns the code, the hosting accounts and the domain? The answer should be you.
  3. How will the system be handed over, including repositories, deployment instructions and credentials?
  4. How is data backed up, how often, where, and has a restore been tested?
  5. How does it scale if usage grows? Ask for the likely first bottleneck.
  6. What third-party services does it depend on, and what happens if one is unavailable?
  7. What environments exist, and how do changes move from test to live?
  8. How is security handled, from access control to updates?
  9. How will problems be noticed, through monitoring and alerts?
  10. What would make this hard to change later?

If the team cannot answer in plain language, treat it as a warning. See also software maintenance and support after launch.

What drives the cost of an architecture?

The main cost drivers are:

  • The number of components and services to build, run and monitor.
  • Integrations with third-party systems.
  • Security and compliance requirements.
  • Expected load and availability needs.
  • Automation, testing and release processes, plus ongoing hosting and support.

Every extra component is an ongoing cost, not a one-off. Ask what each is for.

What are signs of over- or under-engineered systems?

Over-engineered

  • Many services for a small product with few users, and more time spent on infrastructure than features.
  • Designs justified by "we might need it one day", which nobody can fully explain.

Under-engineered

  • No staging environment, and edits made directly on the live system.
  • No backups, or backups never tested.
  • Passwords and keys kept in shared documents or in the code.
  • Features take longer each month because everything is tangled, which is technical debt at work.
  • One person holds all the knowledge and access.

The right level sits between: simple enough to understand, careful enough to be safe.

A worked example

Imagine a small training company commissioning a customer portal. The vendor proposes microservices, a message broker and a container cluster. The owner asks why, and the answers are about hypothetical future scale. They agree instead on a well-structured single application with a database, file storage, a queue for emails and a staging environment, plus an architecture diagram and documented backups. If the portal later outgrows this design, its clear modules can be separated out one at a time.

FAQ

What is web application architecture?

It is the structure of a web application: how the front end, back-end logic, database, APIs and supporting services such as file storage, queues and caching are organised and communicate. Good architecture makes the application reliable, secure and easier to change.

Should I choose microservices or a monolith for my business app?

For most new business applications with a single team, a well-structured monolith is simpler, quicker to build and cheaper to run. Microservices become worthwhile when many teams need to release independently or particular parts have very different scaling needs.

What is the difference between staging and production?

Production is the live system your customers use. Staging is a separate copy used for testing and approval before changes go live, so errors are found without affecting real users or data.

What should I ask my developer about architecture?

Ask for a diagram and documentation, who owns the code and accounts, how backups work and have been tested, how the system scales, which third-party services it relies on and how handover will work. Clear, plain answers are a good sign.

Related reading

Next steps

Ask your vendor for a one-page architecture diagram and a list of every third-party service and account your system depends on. Check who owns each login and when backups were last restored. If you are planning a new application, our app development services cover architecture planning, and you are welcome to contact us for a conversation.

More from the blog

Let's build together

Ready to take your business to the next level?

Tell us what you need. We will reply within one business day with next steps.