Bird
0
0

You are designing a BFF for a mobile app and a web app. The mobile app needs minimal data for fast loading, while the web app needs detailed data. How should you design your BFFs?

hard📝 Trade-off Q15 of 15
Microservices - Advanced Patterns
You are designing a BFF for a mobile app and a web app. The mobile app needs minimal data for fast loading, while the web app needs detailed data. How should you design your BFFs?
AUse a single BFF that returns all data to both frontends
BCreate separate BFFs for mobile and web, each tailoring data to its frontend
CLet frontends call microservices directly to get needed data
DCreate one BFF that returns minimal data for both frontends
Step-by-Step Solution
Solution:
  1. Step 1: Understand frontend needs

    Mobile requires less data for speed; web requires more detailed data.
  2. Step 2: Apply BFF pattern best practice

    Separate BFFs allow tailoring responses to each frontend's needs, improving performance and simplicity.
  3. Final Answer:

    Create separate BFFs for mobile and web, each tailoring data to its frontend -> Option B
  4. Quick Check:

    Separate BFFs tailor data per frontend [OK]
Quick Trick: Use separate BFFs for different frontend needs [OK]
Common Mistakes:
  • Using one BFF for all frontends ignoring needs
  • Letting frontends call microservices directly
  • Returning minimal data to all frontends

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes