Skip to the chapters

Mobile system design

Design the app and the API it needs, for iOS and Android. The first full mock interview is ready, and more are being written.

7 topics · 1 mock interview · 18 chapters

Start reading

The start of every guide is free, with no sign-up.

Chapter 1

How the mobile design round works

18 pages
  1. What the mobile design round is and what interviewers score Beginner 3 pages
  2. How it differs from backend system design: the app first, the backend assumed Beginner 3 pages
  3. Mid-level, senior and staff answers to the same question Intermediate 3 pages
  4. How the round differs by company: Meta, Google, Amazon, Uber, Spotify, Shopify, Flipkart, Swiggy and PhonePe Beginner 3 pages
  5. App questions and library questions: the two kinds of prompt Beginner 3 pages
  6. Red flags: what gets mobile candidates rejected Beginner 3 pages
Chapter 2

The framework

Not written yet
  1. The mobile framework: six steps for every question Beginner Not written yet
  2. Step 1: Clarify the features, platforms and scope Beginner Not written yet
  3. Step 2: The limits that shape an app: flaky networks, battery, offline use and old app versions Beginner Not written yet
  4. Step 3: The API the app needs: endpoints, data models and how updates arrive Beginner Not written yet
  5. Step 4: The client architecture diagram Beginner Not written yet
  6. Step 5: Choosing the deep dives and going deep Intermediate Not written yet
  7. Step 6: Wrapping up: failures, rollout and what you'd measure Intermediate Not written yet
  8. The framework end to end: a weather app in 35 minutes Beginner Not written yet
  9. Practice: The framework Not written yet
Chapter 3

Client architecture

Not written yet
  1. The layers of an app: UI, presentation, domain and data Beginner Not written yet
  2. MVC, MVP, MVVM, MVI and VIPER: what each one fixes Intermediate Not written yet
  3. Unidirectional data flow and screen state Intermediate Not written yet
  4. The repository and a single source of truth Intermediate Not written yet
  5. Dependency injection and testable code Intermediate Not written yet
  6. Navigation, deep links and universal links Intermediate Not written yet
  7. Threads on the device: the main thread, background work, coroutines and async/await Intermediate Not written yet
  8. Modularising a big app: modules, team boundaries and build times Advanced Not written yet
  9. Native, React Native, Flutter or Kotlin Multiplatform: how to choose Intermediate Not written yet
  10. Practice: Client architecture Not written yet
Chapter 4

Networking on a phone

Not written yet
  1. The mobile network: radios, latency, weak signal and switching networks Beginner Not written yet
  2. REST, GraphQL or gRPC for an app Intermediate Not written yet
  3. Lists on the client: cursors, prefetching, gaps and refresh Intermediate Not written yet
  4. Retries, timeouts and idempotency on a phone Intermediate Not written yet
  5. Request priorities, cancellation and deduplication Intermediate Not written yet
  6. Saving the user's data plan: payload size, compression and image formats Intermediate Not written yet
  7. Backend for frontend: one API shaped for the app Intermediate Not written yet
  8. Old app versions: API versioning, minimum versions and forced upgrades Advanced Not written yet
  9. Practice: Networking on a phone Not written yet
Chapter 5

Push and real time

Not written yet
  1. Push notifications end to end: APNs, FCM and device tokens Intermediate Not written yet
  2. Silent pushes and data messages: what they can and can't do Intermediate Not written yet
  3. Live connections on a phone: WebSockets, SSE and MQTT while the app opens and closes Intermediate Not written yet
  4. Polling, push or a socket: choosing how the app hears about changes Intermediate Not written yet
  5. Practice: Push and real time Not written yet
Chapter 6

Data on the device

Not written yet
  1. Where an app keeps data: key-value stores, SQLite, Room, Core Data and files Beginner Not written yet
  2. Caching on the client: memory, disk and the HTTP cache Intermediate Not written yet
  3. Image loading: from a URL to pixels on screen Intermediate Not written yet
  4. Offline-first: an app that works without a network Intermediate Not written yet
  5. The sync engine: outbox, optimistic updates and retries Advanced Not written yet
  6. When two devices edit the same thing: last-write-wins, merging and CRDTs on the client Advanced Not written yet
  7. Changing the database on users' phones: schema migrations Intermediate Not written yet
  8. Protecting data on the device: Keychain, Keystore and encryption Intermediate Not written yet
  9. Practice: Data on the device Not written yet
Chapter 7

Living with the OS: lifecycle and background work

Not written yet
  1. The app lifecycle and process death Intermediate Not written yet
  2. Background work on iOS and Android: BGTaskScheduler, WorkManager and their limits Intermediate Not written yet
  3. Big uploads and downloads that survive the app closing Intermediate Not written yet
  4. Location on a phone: accuracy, battery and background tracking Intermediate Not written yet
  5. Practice: Living with the OS Not written yet
Chapter 8

Performance

Not written yet
  1. App startup time: cold, warm and hot starts Intermediate Not written yet
  2. Smooth scrolling: the frame budget, long lists and jank Intermediate Not written yet
  3. Memory: leaks, big images and the OS killing your app Intermediate Not written yet
  4. Battery: what drains it and how to design around it Intermediate Not written yet
  5. App size: why it matters and how to shrink it Intermediate Not written yet
  6. Measuring performance on real phones: vitals, traces and percentiles Advanced Not written yet
  7. Building for low-end phones and slow networks Advanced Not written yet
  8. Practice: Performance Not written yet
Chapter 9

Security and privacy

Not written yet
  1. Signing in on a phone: OAuth with PKCE, tokens and refresh Intermediate Not written yet
  2. Securing the connection: TLS and certificate pinning Intermediate Not written yet
  3. Can you trust the app? Tampering and rooted phones Advanced Not written yet
  4. Privacy: permissions, tracking consent and third-party SDKs Intermediate Not written yet
  5. Practice: Security and privacy Not written yet
Chapter 10

Shipping and running an app

Not written yet
  1. Releasing through the app stores: review, release trains and phased rollouts Intermediate Not written yet
  2. Feature flags, remote config and kill switches Intermediate Not written yet
  3. Server-driven UI: changing screens without a release Advanced Not written yet
  4. Crash reports and analytics: sending events without losing or doubling them Intermediate Not written yet
  5. A/B tests on mobile, when users don't update Advanced Not written yet
  6. Accessibility and localisation in the design round Beginner Not written yet
  7. Practice: Shipping and running an app Not written yet
Chapter 11

Case studies: the classics

12 pages
  1. Design a news feed app (like Facebook or Instagram) Intermediate 12 pages
  2. Chat app (like WhatsApp or Messenger) Intermediate Not written yet
  3. Photo upload and gallery (like Instagram or Google Photos) Intermediate Not written yet
  4. Image loading library (like Glide, Coil or Kingfisher) Advanced Not written yet
  5. Stories (like Instagram or WhatsApp Status) Intermediate Not written yet
Chapter 12

Case studies: video and music

Not written yet
  1. Video streaming app (like YouTube or Netflix) Intermediate Not written yet
  2. Short-video feed (like TikTok or Instagram Reels) Advanced Not written yet
  3. Music app with offline downloads (like Spotify) Intermediate Not written yet
Chapter 13

Case studies: location and marketplaces

Not written yet
  1. Ride-hailing rider app (like Uber) Intermediate Not written yet
  2. Food delivery and live order tracking (like DoorDash, Swiggy or Zomato) Intermediate Not written yet
  3. Maps with offline navigation (like Google Maps) Advanced Not written yet
Chapter 14

Case studies: commerce, bookings and money

Not written yet
  1. Shopping app and checkout (like Amazon or Flipkart) Intermediate Not written yet
  2. Payments app (like Google Pay, PhonePe or Venmo) Advanced Not written yet
  3. Hotel booking (like Airbnb or Booking.com) Intermediate Not written yet
  4. Stock trading app (like Robinhood or Zerodha Kite) Advanced Not written yet
Chapter 15

Case studies: offline and sync

Not written yet
  1. Offline notes app (like Apple Notes, Evernote or Notion) Intermediate Not written yet
  2. File storage and sync (like Google Drive or Dropbox) Advanced Not written yet
  3. Email client (like Gmail) Intermediate Not written yet
Chapter 16

Case studies: libraries and SDKs

Not written yet
  1. Networking library Advanced Not written yet
  2. Pagination library Intermediate Not written yet
  3. File downloader with pause and resume Intermediate Not written yet
  4. Analytics SDK Intermediate Not written yet
  5. Feature flag and remote config SDK Advanced Not written yet
Chapter 17

Practice problems

Not written yet
  1. Problem set: social and media (dating app like Tinder, podcast player, live streaming with comments, a news reader like Google News) Not written yet
  2. Problem set: everyday apps (fitness tracker like Strava, a calendar, movie tickets like BookMyShow or Fandango, a smart-home controller) Not written yet
  3. Problem set: libraries and platform (a logging SDK, a deep-link router, an in-app messaging SDK, an offline form app for field workers) Not written yet
  4. Follow-up drills: when the interviewer changes the requirements Not written yet
  5. Running a mock round: timer, scoring sheet and how to give feedback Not written yet
Chapter 18

Revision

Not written yet
  1. The mobile cheat sheet: layers, numbers and trade-offs Not written yet
  2. Every case study in five lines Not written yet
  3. iOS and Android side by side: the platform facts to know Not written yet
  4. The night before the mobile round Not written yet

More to read

Frontend, ML and GenAI system design are being written.