Mobile system design

Designing an offline notes app or a chat client: local schema, sync protocol, pagination, push notifications, and API shape. The senior mobile whiteboard round.

About 26 min read3-question knowledge check

The mental model

A mobile system-design interview is not a distributed-systems interview with a phone bolted on. The whole test is whether you design for the device reality — the constrained runtime, the flaky network, the sacred main thread, OS-killed processes, un-rollbackable clients, and battery — instead of treating the phone as a thin window onto a server. The candidates who fail draw a server diagram with an arrow labeled "mobile app" and stop; the candidates who pass spend most of their time on what happens on the device when the network is gone, the app is killed mid-action, or two devices disagree.

The analogy that frames it: designing a field journalist's satellite phone, not an office desk phone. The office phone assumes a dial tone is always there; the satellite phone assumes the connection is intermittent and expensive, so it queues, batches, retries, and works offline by default, syncing when the link comes back. Every good mobile design is built like the satellite phone — local-first, sync-later, resilient to being killed — because that is the actual environment.

The one idea to carry through any mobile design: the local database is the source of truth and the UI renders from it; the network is a background sync, never on the render path. This single principle cascades into every subsystem — persistence, sync protocol, delivery states, pagination, push — and it is what makes an app feel instant and survive a subway tunnel. This lesson walks one complete worked design — an offline-capable real-time chat client — end to end, because seeing every subsystem connect is how the senior whiteboard round is actually graded.

The full lesson continues with 15 more sections
  • Deep dive
  • Internal architecture
  • Real-world use cases
  • Best practices
  • Common mistakes
  • Performance
  • Security
  • Production troubleshooting
  • Advantages & disadvantages
  • Alternatives
  • Interview expectations
  • Interview questions
  • Facts to remember
  • Cheat sheet
  • Quick revision