Glossary · Cloud & Hosting

BFF (Backend for Frontend)

A BFF is a server-side layer built for one specific client, such as a web app or mobile app, that aggregates backend calls and shapes responses for it.

Updated November 11, 2026

Backend for Frontend (BFF) is an architecture pattern where each kind of client, for example the website and the mobile app, gets its own thin server layer. That layer calls the underlying services, combines the results and returns exactly the data its client needs.

Why it matters

A single general-purpose API tends to either over-fetch for mobile or force the browser to make many round trips. A BFF moves that orchestration to the server, where network links are fast, and keeps client-specific logic out of shared services. It can also hold secrets and tokens so they never reach the browser. The cost is another deployable component to run and monitor, and another place where an outage can occur.

Example

A product page needs data from three services:

GET /bff/product/42
  -> catalog-service /items/42
  -> pricing-service /prices/42
  -> reviews-service /summary/42

The BFF merges the three responses into one JSON payload. If reviews are down, it can return the page without them instead of failing, a form of graceful degradation.

Common mistakes

  • Letting the BFF grow business rules that belong in the services behind it.
  • Sharing one BFF across very different clients, which recreates the general API problem.
  • Skipping timeouts on the fan-out calls, so one slow service stalls the whole page.

Get notified when this term updates

Plus occasional practical tips on uptime and monitoring, nothing else. Unsubscribe anytime.

This page is general information written by our editorial team and updated when documentation changes. Servers and providers differ, so test changes safely first. See our editorial policy and disclaimer.