A BFF aggregates data from multiple microservices and applies business logic. How can you ensure scalability as user load grows?
hard📝 Trade-off Q9 of 15
Microservices - Advanced Patterns
A BFF aggregates data from multiple microservices and applies business logic. How can you ensure scalability as user load grows?
ARun a single BFF instance with no caching.
BDeploy multiple BFF instances behind a load balancer and use caching.
CRemove the BFF and let frontend call microservices directly.
DUse a monolithic backend instead of microservices.
Step-by-Step Solution
Solution:
Step 1: Identify scalability strategies
Scaling horizontally with multiple instances and caching improves performance under load.
Step 2: Evaluate options
Deploy multiple BFF instances behind a load balancer and use caching. uses multiple BFF instances and caching, which is best for scalability. Others reduce scalability or increase complexity.
Final Answer:
Deploy multiple BFF instances behind a load balancer and use caching. -> Option B
Quick Check:
Horizontal scaling + caching = scalable BFF [OK]
Quick Trick:Scale BFF horizontally with caching [OK]
Common Mistakes:
Using single instance limits scalability
Removing BFF increases frontend complexity
Switching to monolith reduces microservices benefits
Master "Advanced Patterns" in Microservices
9 interactive learning modes - each teaches the same concept differently