A fully remote UK team. Send a message or a voice note and we handle the rest. Book a consultation

Web app architecture in plain English: front end, back end and database

The parts of a web app and how a request travels through them, explained without jargon.

Abstract dark and orange artwork for the article: Web app architecture in plain English: front end, back end and database

If you are commissioning a web app, you will hear words like front end, back end, database, API and hosting. You do not need to become technical to work with us, but a rough picture of how the pieces fit together makes conversations easier and decisions clearer.

This post is that picture, in plain English. It is the starting point for a short series. The others go deeper on where your data lives, accounts, roles and permissions, connecting your systems and the security basics we build in.

Illustration: a web app dashboard with navigation, figures and chartsIllustration: a web app dashboard with navigation, figures and charts
A web app dashboard with navigation, figures and charts.

What we mean by a web app

A website mostly shows information. A web app lets people do things: book an appointment, manage stock, track a job, place an order, update a customer record. It runs in a web browser, so people use it on a phone, tablet or computer without installing anything from an app store.

The line between the two is blurry. A website with a booking form has a little web app inside it. A customer portal is a web app with some information pages around it. The architecture below applies to anything that does more than display pages.

The restaurant picture

An analogy helps. Think of a web app as a restaurant.

  • The dining room is the front end. It is what customers see and touch: the menu, the table, the person taking the order.
  • The kitchen is the back end. It is where the real work happens, out of sight. Orders are checked, rules are followed, and food is prepared.
  • The pantry is the database. It holds everything the kitchen needs, organised so that things can be found easily.
  • Suppliers are outside services. The restaurant does not grow its own vegetables or print its own card machines; it relies on others for those.
  • The building is the hosting. Everything has to live somewhere, with power, locks and an address people can find.

Like any analogy it breaks down if you push it, but it captures the main idea: different parts do different jobs, and they pass work between each other.

The front end

The front end is everything that appears in the browser: pages, screens, buttons, forms, menus and messages. It is built with the languages browsers understand, which describe the content, how it looks, and how it responds when someone taps or types.

A good front end is about more than looks. It needs to:

  • Work on different screen sizes, from a small phone to a large monitor.
  • Be usable by people with different abilities, including those using keyboards or screen readers.
  • Make the next step obvious, so people do not get lost.
  • Explain clearly when something goes wrong, such as a missing field in a form.

The front end should never be trusted with anything important on its own. Anyone can see and change what runs in their own browser. That is why the real checks happen in the back end.

The back end

The back end runs on a server, out of sight. It is where your business rules live. When someone signs in, the back end checks their details. When someone places an order, it checks that the item is in stock, works out the total, records the order and sends a confirmation. When someone asks to see a record, it checks whether they are allowed to see it before sending anything back.

The back end is also where most of the important decisions in your software are made, including:

  • Who someone is, and what they are allowed to do.
  • Whether the information they have sent is valid.
  • What should be saved, changed or deleted.
  • When to send emails or notifications.
  • How to talk to outside services, such as a payment provider.

Because it runs on a server you control, the back end is the place to keep secrets, such as the keys that let your app talk to other services. They never need to be sent to anyone's browser.

The database

The database is where information is stored so that it is still there tomorrow: customers, orders, bookings, products, messages, settings. It is organised so that the back end can find, sort and combine records efficiently.

You can think of it as a set of very well-organised tables, each holding one kind of thing, with links between them. A customer has orders; an order has items; an item belongs to a product. Getting that structure right early makes everything else simpler, from reports to future features. Our post on where your data lives explains this in more depth.

Hosting

All of this has to run somewhere. Hosting is the computer, usually in a data centre, that runs the back end and the database and delivers the front end to people's browsers. Along with it come the domain name people type, and the security certificate that encrypts the connection and shows the padlock in the browser.

Hosting ranges from ordinary shared web hosting to dedicated servers and cloud platforms. The right choice depends on what the app needs, how many people use it and how much looking after you want it to need. We prefer set-ups that are not tied to one provider, so you can move if you ever need to, as explained in keeping your options open.

Illustration: data kept in step between two storesIllustration: data kept in step between two stores
Data kept in step between two stores.

Outside services

Very few web apps do everything themselves. They rely on outside services for specialist jobs:

  • Payments, handled by a payment provider, so card details never touch your own servers.
  • Email delivery, so that confirmations and password resets arrive reliably.
  • Maps, address lookup or tax calculations.
  • Accounting, stock or customer systems you already use.

The back end talks to these services through their APIs, which are agreed ways for one piece of software to ask another to do something. Our post on integrations and APIs explains how we scope those connections.

Following one request

Here is what happens when a customer books an appointment, step by step.

The customer taps "Book". The front end gathers the details they entered and sends them to the back end. The web works on a client-server model: the browser, as the client, sends a request, and the server sends back a response (MDN Web Docs, overview of HTTP). The connection is encrypted, so the details cannot be read on the way.

The back end checks the request. Is the person signed in, if they need to be? Is the date in the future? Is the slot still free? Is every required field filled in?

The back end updates the database. It records the booking and marks the slot as taken, in a way that stops two people booking the same slot at the same moment.

The back end calls outside services. It might ask the email service to send a confirmation, or the payment provider to take a deposit.

The back end replies. It tells the front end whether the booking worked.

The front end shows the result. The customer sees a clear confirmation, or a clear explanation of what went wrong and what to do next.

All of that typically happens in a moment. But each step is a place where design decisions matter: what to check, what to store, what to say when something goes wrong.

Why the separation matters

Keeping these parts separate is not just tidiness. It has practical benefits for you.

Security. Important checks happen on the server, where they cannot be bypassed by someone tampering with their browser.

Flexibility. The same back end can serve a website, a progressive web app and a mobile app. If you add an app later, you may not need to rebuild the core.

Maintainability. Each part can be updated on its own. A new design for the front end does not have to mean rewriting your business rules.

Scale. If the app becomes busier, the parts under strain can be strengthened without rebuilding everything.

Illustration: the layers of a web app, from interface to dataIllustration: the layers of a web app, from interface to data
The layers of a web app, from interface to data.

Common shapes

Web apps tend to come in a few common shapes. You do not need to choose between them, but you may hear them mentioned.

Server-rendered. The back end builds each page and sends it to the browser ready to display. Simple, robust and often a good fit for admin tools and content-heavy apps.

Browser-rendered. The browser loads the app once, then asks the back end only for data, building screens itself. This can feel smooth for highly interactive tools, at the cost of more complexity in the front end.

A mix. Many apps render most pages on the server and add interactive pieces where they help.

A progressive web app. A web app that can also be added to a phone's home screen and, where planned, keep working with a weak connection. We cover when that makes sense in when a PWA makes sense.

We choose the shape based on what your users need to do, not on fashion, in the same way we choose a tech stack.

What this means when we talk

When we discuss your project, a few questions map directly onto this picture:

  • What should people be able to do? That shapes the front end.
  • What rules should apply, and who can do what? That shapes the back end.
  • What information needs to be kept, and for how long? That shapes the database.
  • What else does it need to connect to? That shapes the outside services.
  • How many people will use it, and how critical is it? That shapes the hosting.

You do not need to answer in technical terms. Describe your business, and we will translate.

An example from our own work

We built our own admin system and client portal as web apps along these lines: a phone-friendly front end, a back end that applies our rules and checks who is allowed to see what, and a database behind it, running on ordinary web hosting. Clients can add the portal to their phone's home screen. The point is not the particular technology, but that the separation lets us keep each client's information to themselves and change the screens without touching the rules underneath.

In short

A web app has a front end people see, a back end that does the work and applies your rules, a database that remembers things, hosting that keeps it all running, and outside services for specialist jobs. Requests flow from the browser to the back end and back again, with the important checks happening on the server. Knowing that much is enough to have useful conversations about your project. If you have something in mind, get in touch and we will talk it through.