Part 13 · Technology for designers

Chapter 76: Frontend, backend and architecture

Part 13 · Technology for designers5 min read

Software architecture is how a software system is divided into parts and how those parts talk to each other. Users never see it, but it sets the price of every design change: moving a button costs an hour; showing a delivery estimate the system doesn’t calculate may cost a quarter.

Frontend and backend

The frontend is the code that draws the interface and responds to what the user does: layout, type, animation, form fields, the loading spinner. On the web it’s written in HTML, CSS and JavaScript (→ 74 HTML and CSS, 75 JavaScript, browsers and performance). The backend is the code that stores data, applies the product’s rules and decides which information each user is allowed to see. MDN lists PHP, Python, Ruby, C# and JavaScript on Node.js among the common backend languages.1

The rules the backend applies are called business logic. In a food-delivery app, the frontend draws the checkout screen; the backend works out the delivery fee, checks the restaurant is open, charges the card and stores the order. This split tells you where a design request lands. Changing a color, a label or the order of fields is frontend work. A new filter, a new field on the order, or a message that depends on the user’s history usually needs backend work as well, and often API and database changes (→ 77 APIs; → 78 Data and databases).

Validation happens on both sides, for different reasons. The frontend checks a form as the user types, for instant feedback (→ 61 Interaction patterns, forms and states). The backend checks everything again, because anyone can bypass the frontend and send bad data straight to the server. MDN’s rule is never to trust data the client sends.2 So the design needs error states for both: the inline message the frontend can catch, and the one that comes back from the server after submission, such as “That promo code has expired.”

Frontend (runs in the browser or app) Checkout layout and type form fields andinline errors loading andempty states API (→ 77) Backend (runs on servers) Business logic: fees, opening hours, refunds Authentication and permissions Database: orders, menus, users Cloud: rented servers in a data center Full stack
Figure 76.1 The same checkout screen, split by where its parts run. A design change that crosses the arrow costs more.

Full stack

A stack is the set of technologies an application is built with: a frontend framework, a backend language, a database and the services that host them. A full-stack developer works on both the frontend and the backend. It’s the most common job description among programmers: in Stack Overflow’s 2024 survey, 30.7% of all respondents called themselves full-stack, against 16.7% back-end and 5.6% front-end.4 In practice most full-stack developers lean one way, so it’s worth asking which. The design version of the term is covered in → 2 The design disciplines.

Monoliths and microservices

A monolith is an application built and deployed as a single unit. All its code ships together, so any change means rebuilding and releasing the whole thing.5 A microservice is a small service that runs in its own process and talks to other services over the network, usually through an HTTP API. James Lewis and Martin Fowler named the style in 2014. In their description each service is organized around one business capability, such as payments or search, is owned by one team, and keeps its own database.5

Neither is the modern answer. Microservices let teams release separately, but every call between services crosses a network, which is slower and can fail, and changes that span several services need coordinated releases. Fowler argued in 2015 that new projects should usually start as a monolith, because the right boundaries are hard to see before the product exists.6 Monzo, a UK bank, ran more than 1,500 services by 2019.7 Shopify kept its very large Ruby on Rails monolith and divided it inside into parts with strictly enforced boundaries, a modular monolith, to avoid the deployment and network costs of splitting it up.8

Architecture also follows the org chart. Conway’s law comes from a 1968 paper by Melvin Conway, who observed that organizations produce designs that copy their own communication structures.9 For designers this is practical: if search, cart and payments belong to three teams and three services, a checkout that blends them needs all three teams to agree, and the seams between services tend to show up in the interface as separate loading states and inconsistent errors. Ask which services a screen touches before promising it will feel like one thing.

Cloud and environments

Cloud computing is renting computing resources over a network, on demand, from a shared pool that can grow or shrink quickly. The US National Institute of Standards and Technology published the standard definition in 2011, with three service models.10 In IaaS (infrastructure as a service) a team rents servers and storage and runs its own software on them. In PaaS (platform as a service) it deploys its application onto a platform the provider runs. In SaaS (software as a service) it uses the provider’s finished product, such as web-based email. Amazon Web Services opened its rentable servers, EC2, as a beta in August 2006.11 The cloud is still physical (Figure 76.2), which is why region, latency and where user data is stored remain real decisions (→ 95 Privacy and data ethics).

A long aisle between rows of white server cabinets with perforated doors in a data center.
Figure 76.2 Server racks at Pi Datacenters in Amaravati, Andhra Pradesh, India, 2021. Cloud services run on rooms like this one.

PiDatacenters, CC BY-SA 4.0, via Wikimedia Commons.

An environment is a separate running copy of the system with its own settings and data. Most teams have at least three:

EnvironmentWho uses itDataWhat a designer does there
DevelopmentOne developer, often on a laptopFake or seededPair on details before anything is shared
Staging or previewThe teamTest data, close to realReview builds and run design QA (→ 81 Handoff and accessibility in code)
ProductionReal usersRealCheck releases and watch analytics

Many hosting platforms also build a preview deployment for each branch or pull request, with its own URL, so a designer can review one change before it’s merged.12 The twelve-factor guidelines ask teams to keep development, staging and production as alike as possible, because differences between them let bugs pass testing and appear only in production.13 The difference designers notice most is data: staging is often full of short names, tidy photos and three orders per user. Ask for test accounts with long names, empty histories and slow connections, and check the release in production too (→ 80 The software development lifecycle).

See also

2 The design disciplines · 73 How the internet and the web work · 75 JavaScript, browsers and performance · 77 APIs · 78 Data and databases · 80 The software development lifecycle · 81 Handoff and accessibility in code

Sources

  • Amazon Web Services (2006). “Announcing Amazon Elastic Compute Cloud (Amazon EC2), beta.”
  • Conway, M. E. (1968). “How Do Committees Invent?” Datamation 14(4).
  • Fowler, M. (2015). “MonolithFirst.” martinfowler.com.
  • Kleeman, J. (2019). “We built network isolation for 1,500 services to make Monzo more secure.” Monzo.
  • Lewis, J. and Fowler, M. (2014). “Microservices.” martinfowler.com.
  • MDN Web Docs (n.d.). “Introduction to the server side”; “Client-side form validation.” Mozilla.
  • Mell, P. and Grance, T. (2011). The NIST Definition of Cloud Computing, SP 800-145. NIST.
  • Stack Overflow (2024). 2024 Developer Survey.
  • Vercel (2026). “Environments” and “Server and Client Components” (Next.js). Documentation.
  • Westeinde, K. (2019). “Deconstructing the Monolith.” Shopify Engineering.
  • Wiggins, A. (n.d.). The Twelve-Factor App.

Notes

  1. MDN Web Docs (n.d.). “Introduction to the server side.” https://developer.mozilla.org/en-US/docs/Learn_web_development/Extensions/Server-side/First_steps/Introduction ↩
  2. MDN Web Docs (n.d.). “Client-side form validation.” https://developer.mozilla.org/en-US/docs/Learn_web_development/Extensions/Forms/Form_validation ↩
  3. Vercel (2026). “Server and Client Components.” Next.js documentation. https://nextjs.org/docs/app/getting-started/server-and-client-components ↩
  4. Stack Overflow (2024). “2024 Developer Survey: Developer profile,” developer type. https://survey.stackoverflow.co/2024/developer-profile/ ↩
  5. Lewis, J. and Fowler, M. (2014, March 25). “Microservices.” martinfowler.com. https://martinfowler.com/articles/microservices.html ↩ ↩
  6. Fowler, M. (2015, June 3). “MonolithFirst.” martinfowler.com. https://martinfowler.com/bliki/MonolithFirst.html ↩
  7. Kleeman, J. (2019, November 6). “We built network isolation for 1,500 services to make Monzo more secure.” Monzo blog. https://monzo.com/blog/we-built-network-isolation-for-1-500-services ↩
  8. Westeinde, K. (2019, February 21). “Deconstructing the Monolith: Designing Software that Maximizes Developer Productivity.” Shopify Engineering. https://shopify.engineering/deconstructing-monolith-designing-software-maximizes-developer-productivity ↩
  9. Conway, M. E. (1968, April). “How Do Committees Invent?” Datamation 14(4). https://www.melconway.com/Home/Committees_Paper.html ↩
  10. Mell, P. and Grance, T. (2011). The NIST Definition of Cloud Computing, SP 800-145. National Institute of Standards and Technology. https://csrc.nist.gov/pubs/sp/800/145/final ↩
  11. Amazon Web Services (2006, August 24). “Announcing Amazon Elastic Compute Cloud (Amazon EC2), beta.” https://aws.amazon.com/about-aws/whats-new/2006/08/24/announcing-amazon-elastic-compute-cloud-amazon-ec2---beta/ ↩
  12. Vercel (2026). “Environments.” Vercel documentation. https://vercel.com/docs/deployments/environments ↩
  13. Wiggins, A. (n.d.). “X. Dev/prod parity.” The Twelve-Factor App. https://12factor.net/dev-prod-parity ↩