📁 Sangam Dhakal - Portfolio v2.0 - Netscape Navigator 4.0
_
□
×

📚 Interview question

Would you introduce a backend for frontend (BFF) for the mobile app to avoid this class of problem?

Senior RealWorldScenario Advanced api-design backward-compatibility bff mobile web-api

🎯 Key points

  • BFF isolates the mobile contract from web-driven changes
  • Owned by the app team and released with the app
  • Can aggregate several backend calls into one mobile-shaped response (fewer round trips on mobile networks)
  • Extra service: hosting, security, auth token handling, observability and on-call
  • Adds a hop (a few ms) and a second contract to version
  • Still must support the long tail of installed app versions
  • Justified by diverging needs, not by one incident

⏱ 30-second answer

Maybe. A mobile BFF owned by the app team lets the app's contract evolve with the app and isolates it from changes the web needs, which removes a lot of coordination. It can also aggregate several backend calls into one mobile-shaped response, cutting round trips and payload on slow mobile networks.

But it is another service to host, secure, monitor and be on call for, it adds a hop and a second contract to version, and it moves rather than removes compatibility: the BFF still has to serve every supported app version. I would introduce one when web and mobile needs genuinely diverge or the app team wants to own its API, not just to dodge one incident.

🔍 What the interviewer is checking

Checks the candidate can weigh a BFF against a shared API with compatibility rules: performance and team-autonomy gains versus operational complexity and the compatibility burden that remains.

Green flags

  • Names both gains (isolation, aggregation) and costs (another service, another contract)
  • Notes the BFF still has to support old app versions
  • Ties the decision to diverging needs and team ownership

Red flags

  • Treats a BFF as a fix for breaking changes by itself
  • Ignores who owns and runs the new service

↩ Usually asked after

More in API Design

Last updated 23 Nov 2026.

🌐 Sangam's Webring

⏪ Previous 🏠 Main Next ⏩
💬 Chat with me