API Design · Senior · Question 47 of 75
What's a downside of putting too much logic into an API gateway?
- 1Gateways make TLS impossible
- ✓Correct answer: It becomes a shared bottleneck that couples teams, is hard to test and turns into a distributed monolith
- 3Gateways can't route requests
Explanation
Keep gateways for cross-cutting concerns; put client-specific aggregation into BFFs owned by client teams.