All jobs / Mobile developer / Networking
Mobile developer interview question · 5+ years
Three apps will all work offline. What do you standardise?
The strongest answer
A sync protocol, conflict rules, queue semantics, and observability (pending / failed / conflict counts) — not three clever local databases that cannot explain themselves to support
Why it works
Exactly. Offline at org scale is a protocol and a support story.
What a good answer covers
- One protocol, named conflicts.
- Visible queue metrics.
- Do not couple apps via a shared process.
- Support must be able to explain a stuck sync.
Answers that fall short
- Close, but not the strongest: SQLite in each app and “we will align later”
Later never comes, and support cannot see three queues. - Weak: A single shared process on the phone that all our apps must attach to
A mandatory shared process is a coupling and a store headache. - Red flag: A policy that offline is banned so sync stays simple
Banning offline is a product retreat, not a platform.
Who gets asked this
More Networking questions
- The API was down for ten minutes. It fell over again the moment it returned, and the traffic was the app…
- The backend adds a field to a response and the shipped app starts failing to parse it. What should the client…
- A feed can be tens of thousands of items. How do you load it?
- A notes app edits offline and later meets a server that also changed. What do you do?
- How do you avoid re-downloading a list that rarely changes, without showing stale data for ever?
- You are choosing how a field-sales app syncs. What do you put in the design doc?
- On launch the app fires six requests at once. The access token has expired, and some users end up logged out…