What is a backend for frontend?

Definition

It can gather data from several services, shape that data for the screen and provide actions the client supports.

This keeps presentation-specific decisions near the client contract. Different clients can share underlying services while receiving different views of the same data.

ELI5

For example, a restaurant app can receive a short mobile card with a reservation button while its web version receives a larger comparison view.

Both can use the same restaurant records without requiring the phone and browser to render the exact same response.

Why tailor a backend to a client?

It can send only the information and actions that fit the client’s components and interaction patterns.

How can this help older app versions?

The server can select a compatible response based on the actions and interface components the app version supports.

  1. Portrait of Balakrishnan Ramdoss beside the blue-and-white headline "AGENT OUTPUT TO ACTION" on a black background.
Definition card for backend for frontend: What is a backend for frontend?

A backend for frontend is a server layer tailored to the needs of a particular client interface.