System Design · Middle · Question 45 of 75
How does an API Gateway differ from a BFF?
- ✓Correct answer: Gateway is a shared entry point, BFF is a layer for a specific client
- 2Gateway works only with GraphQL and BFF only with REST
- 3They are synonyms for the same service
Explanation
A gateway handles cross-cutting concerns for all clients. A BFF aggregates and adapts data to the needs of a specific interface (web, mobile app). In real systems they often coexist.