All jobs / Full-stack developer / End-to-End Architecture
Full-stack developer interview question · 1–3 years
The page needs a user, their last three invoices and a permission set. Those live on three internal services.
When do you add a BFF?
The strongest answer
When this UI needs a shape the public API should not have — aggregation, cookie-to-token translation, or hiding fields a mobile client must not see
Why it works
Exactly. A BFF is a tailored door for one client. Earn it with a real mismatch, not with fashion.
What a good answer covers
- BFF = this client's needs, not a second product.
- Use it to aggregate, adapt auth, or hide public-API edges.
- Do not invent one by default.
- Do not empty the real API into an untyped pass-through.
Answers that fall short
- Close, but not the strongest: Always; every React app should have its own backend
A BFF for a CRUD admin on one service is another hop to page. - Weak: Never; the browser can call six microservices
Six CORS configs and six auth stories in the browser is how you leak tokens. - Red flag: When we want to put business rules only in the BFF and leave the API as a dump of tables
A BFF that becomes the only place rules live is a second monolith with a new name.
Who gets asked this
More End-to-End Architecture questions
- The same `/projects` powers the website and a native app that ships through an app store. How do you keep one…
- The server needs to push status updates to the browser, and the client never sends anything back on that…
- You deploy API and UI. Support still sees errors from a field you renamed. What do you assume after a deploy?
- You need to change `amount` from a string to a number. How do you version without stranding the UI?
- You want to rename `title` to `headline` on a resource the SPA already ships. How do you roll the rename?
- What do you say, and when should the prompt appear?
- Every click on a table of 40 rows fires OPTIONS then GET, and it shows on slow networks. How do you stop the…
- You are tired of the form accepting a payload the API 400s. Where does the schema live?