All jobs / Full-stack developer / End-to-End Architecture
Full-stack developer interview question · 1–3 years
You deploy API and UI. Support still sees errors from a field you renamed.
What do you assume after a deploy?
The strongest answer
Some tabs will run yesterday's JS against today's API for hours — so the API stays compatible and hashed assets get new names
Why it works
Exactly. Zero-downtime is a compatibility window, not a moment. Hash the bundle; keep the old routes answering the old JSON.
What a good answer covers
- Old JS will call the new API.
- Hashed filenames; do not cache `index.html` forever.
- Keep old fields until the window closes.
- Reload is not an error-handling strategy.
Answers that fall short
- Close, but not the strongest: Everyone refreshes; we can break the old bundle
Users do not refresh because you shipped. Mobile web and long-lived tabs especially. - Weak: A service worker we never wrote will update them
A SW you did not implement will not save you. One you did can make stale worse if you cache index.html. - Red flag: We force `location.reload()` on every API error
Reloading on every 400 is how you punish a validation error with a full refresh.
Who gets asked this
More End-to-End Architecture questions
- 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?
- The marketing layout SSR-renders a 'Your workspace' header for logged-in people. How does the server render a…
- Creators upload long videos from phones on bad networks. How do you take a 2GB file on a train Wi-Fi?
- Access tokens last 15 minutes. You need a stay-logged-in story. How do you refresh the session?