A Backend-for-Frontend (BFF) is a dedicated gateway per client type (web, mobile, partner). Instead of one generic gateway serving all clients, each frontend gets a backend tailored to its needs.
The problem it solves
A mobile app and a web app have different data, payload-size, and chattiness needs. A single generic API forces compromises and over-fetching.
text
Without BFF: With BFF:
All clients Web ─▶ Web BFF ─┐
│ Mobile ─▶ Mobile BFF ─┼─▶ microservices
one generic API Partner ─▶ Partner BFF ─┘
