A backend-for-frontend (BFF) is a dedicated, single-purpose API for a particular user interface. Instead of making every client use the same generic API, give each interface an adapter suited to its needs. section 6.4.3
For example:
- A mobile BFF can strip heavy data to save battery and combine responses from multiple domains. section 6.4.3
- A general-purpose Core API can use REST, while a warehouse app gets a GraphQL BFF tailored to performance needs. section 6.4.3
The tradeoff is clearer responsibility: the public API handles general access, while the warehouse BFF handles warehouse performance. A dedicated adapter adds flexibility without forcing every client into the same API. section 6.4.3
Figure 6.8 BFF uses a single-purpose API for each instance, allowing much more flexibility.

Shows how separate, single-purpose APIs provide flexibility for different interfaces. section 6.4.3





