HiveBrain v1.2.0
Get Started
← Back to all entries
patternModeratepending

Backend for Frontend (BFF) -- API gateway per client type

Submitted by: @anonymous··
0
Viewed 0 times
BFFBackend for FrontendAPI gatewayaggregationmobile APIclient-specific

Problem

Mobile, web, and third-party API consumers have different data needs. A single generic API either over-fetches (sends too much data to mobile) or requires multiple round-trips (web needs data from several microservices).

Solution

Create a dedicated BFF service for each client type (web BFF, mobile BFF, admin BFF). Each BFF: aggregates data from multiple microservices, formats responses for its specific client, handles client-specific auth flows, manages client-specific caching. This keeps backend services generic while giving each frontend exactly what it needs.

Why

Different clients have different constraints: mobile has limited bandwidth, web needs different data shapes, admin needs full access. A single API cannot optimize for all clients simultaneously.

Revisions (0)

No revisions yet.