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
18 pagesHow the mobile design round works
- What the mobile design round is and what interviewers score Beginner 3 pages
- How it differs from backend system design: the app first, the backend assumed Beginner 3 pages
- Mid-level, senior and staff answers to the same question Intermediate 3 pages
- How the round differs by company: Meta, Google, Amazon, Uber, Spotify, Shopify, Flipkart, Swiggy and PhonePe Beginner 3 pages
- App questions and library questions: the two kinds of prompt Beginner 3 pages
- Red flags: what gets mobile candidates rejected Beginner 3 pages
Chapter 2
Not written yetThe framework
- The mobile framework: six steps for every question Beginner Not written yet
- Step 1: Clarify the features, platforms and scope Beginner Not written yet
- Step 2: The limits that shape an app: flaky networks, battery, offline use and old app versions Beginner Not written yet
- Step 3: The API the app needs: endpoints, data models and how updates arrive Beginner Not written yet
- Step 4: The client architecture diagram Beginner Not written yet
- Step 5: Choosing the deep dives and going deep Intermediate Not written yet
- Step 6: Wrapping up: failures, rollout and what you'd measure Intermediate Not written yet
- The framework end to end: a weather app in 35 minutes Beginner Not written yet
- Practice: The framework Not written yet
Chapter 3
Not written yetClient architecture
- The layers of an app: UI, presentation, domain and data Beginner Not written yet
- MVC, MVP, MVVM, MVI and VIPER: what each one fixes Intermediate Not written yet
- Unidirectional data flow and screen state Intermediate Not written yet
- The repository and a single source of truth Intermediate Not written yet
- Dependency injection and testable code Intermediate Not written yet
- Navigation, deep links and universal links Intermediate Not written yet
- Threads on the device: the main thread, background work, coroutines and async/await Intermediate Not written yet
- Modularising a big app: modules, team boundaries and build times Advanced Not written yet
- Native, React Native, Flutter or Kotlin Multiplatform: how to choose Intermediate Not written yet
- Practice: Client architecture Not written yet
Chapter 4
Not written yetNetworking on a phone
- The mobile network: radios, latency, weak signal and switching networks Beginner Not written yet
- REST, GraphQL or gRPC for an app Intermediate Not written yet
- Lists on the client: cursors, prefetching, gaps and refresh Intermediate Not written yet
- Retries, timeouts and idempotency on a phone Intermediate Not written yet
- Request priorities, cancellation and deduplication Intermediate Not written yet
- Saving the user's data plan: payload size, compression and image formats Intermediate Not written yet
- Backend for frontend: one API shaped for the app Intermediate Not written yet
- Old app versions: API versioning, minimum versions and forced upgrades Advanced Not written yet
- Practice: Networking on a phone Not written yet
Chapter 5
Not written yetPush and real time
- Push notifications end to end: APNs, FCM and device tokens Intermediate Not written yet
- Silent pushes and data messages: what they can and can't do Intermediate Not written yet
- Live connections on a phone: WebSockets, SSE and MQTT while the app opens and closes Intermediate Not written yet
- Polling, push or a socket: choosing how the app hears about changes Intermediate Not written yet
- Practice: Push and real time Not written yet
Chapter 6
Not written yetData on the device
- Where an app keeps data: key-value stores, SQLite, Room, Core Data and files Beginner Not written yet
- Caching on the client: memory, disk and the HTTP cache Intermediate Not written yet
- Image loading: from a URL to pixels on screen Intermediate Not written yet
- Offline-first: an app that works without a network Intermediate Not written yet
- The sync engine: outbox, optimistic updates and retries Advanced Not written yet
- When two devices edit the same thing: last-write-wins, merging and CRDTs on the client Advanced Not written yet
- Changing the database on users' phones: schema migrations Intermediate Not written yet
- Protecting data on the device: Keychain, Keystore and encryption Intermediate Not written yet
- Practice: Data on the device Not written yet
Chapter 7
Not written yetLiving with the OS: lifecycle and background work
- The app lifecycle and process death Intermediate Not written yet
- Background work on iOS and Android: BGTaskScheduler, WorkManager and their limits Intermediate Not written yet
- Big uploads and downloads that survive the app closing Intermediate Not written yet
- Location on a phone: accuracy, battery and background tracking Intermediate Not written yet
- Practice: Living with the OS Not written yet
Chapter 8
Not written yetPerformance
- App startup time: cold, warm and hot starts Intermediate Not written yet
- Smooth scrolling: the frame budget, long lists and jank Intermediate Not written yet
- Memory: leaks, big images and the OS killing your app Intermediate Not written yet
- Battery: what drains it and how to design around it Intermediate Not written yet
- App size: why it matters and how to shrink it Intermediate Not written yet
- Measuring performance on real phones: vitals, traces and percentiles Advanced Not written yet
- Building for low-end phones and slow networks Advanced Not written yet
- Practice: Performance Not written yet
Chapter 9
Not written yetSecurity and privacy
- Signing in on a phone: OAuth with PKCE, tokens and refresh Intermediate Not written yet
- Securing the connection: TLS and certificate pinning Intermediate Not written yet
- Can you trust the app? Tampering and rooted phones Advanced Not written yet
- Privacy: permissions, tracking consent and third-party SDKs Intermediate Not written yet
- Practice: Security and privacy Not written yet
Chapter 10
Not written yetShipping and running an app
- Releasing through the app stores: review, release trains and phased rollouts Intermediate Not written yet
- Feature flags, remote config and kill switches Intermediate Not written yet
- Server-driven UI: changing screens without a release Advanced Not written yet
- Crash reports and analytics: sending events without losing or doubling them Intermediate Not written yet
- A/B tests on mobile, when users don't update Advanced Not written yet
- Accessibility and localisation in the design round Beginner Not written yet
- Practice: Shipping and running an app Not written yet
Chapter 11
12 pagesCase studies: the classics
- Design a news feed app (like Facebook or Instagram) Intermediate 12 pages
- Chat app (like WhatsApp or Messenger) Intermediate Not written yet
- Photo upload and gallery (like Instagram or Google Photos) Intermediate Not written yet
- Image loading library (like Glide, Coil or Kingfisher) Advanced Not written yet
- Stories (like Instagram or WhatsApp Status) Intermediate Not written yet
Chapter 12
Not written yetCase studies: video and music
- Video streaming app (like YouTube or Netflix) Intermediate Not written yet
- Short-video feed (like TikTok or Instagram Reels) Advanced Not written yet
- Music app with offline downloads (like Spotify) Intermediate Not written yet
Chapter 13
Not written yetCase studies: location and marketplaces
- Ride-hailing rider app (like Uber) Intermediate Not written yet
- Food delivery and live order tracking (like DoorDash, Swiggy or Zomato) Intermediate Not written yet
- Maps with offline navigation (like Google Maps) Advanced Not written yet
Chapter 14
Not written yetCase studies: commerce, bookings and money
- Shopping app and checkout (like Amazon or Flipkart) Intermediate Not written yet
- Payments app (like Google Pay, PhonePe or Venmo) Advanced Not written yet
- Hotel booking (like Airbnb or Booking.com) Intermediate Not written yet
- Stock trading app (like Robinhood or Zerodha Kite) Advanced Not written yet
Chapter 15
Not written yetCase studies: offline and sync
- Offline notes app (like Apple Notes, Evernote or Notion) Intermediate Not written yet
- File storage and sync (like Google Drive or Dropbox) Advanced Not written yet
- Email client (like Gmail) Intermediate Not written yet
Chapter 16
Not written yetCase studies: libraries and SDKs
- Networking library Advanced Not written yet
- Pagination library Intermediate Not written yet
- File downloader with pause and resume Intermediate Not written yet
- Analytics SDK Intermediate Not written yet
- Feature flag and remote config SDK Advanced Not written yet
Chapter 17
Not written yetPractice problems
- Problem set: social and media (dating app like Tinder, podcast player, live streaming with comments, a news reader like Google News) Not written yet
- Problem set: everyday apps (fitness tracker like Strava, a calendar, movie tickets like BookMyShow or Fandango, a smart-home controller) Not written yet
- 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
- Follow-up drills: when the interviewer changes the requirements Not written yet
- Running a mock round: timer, scoring sheet and how to give feedback Not written yet
Chapter 18
Not written yetRevision
- The mobile cheat sheet: layers, numbers and trade-offs Not written yet
- Every case study in five lines Not written yet
- iOS and Android side by side: the platform facts to know Not written yet
- The night before the mobile round Not written yet
More to read
Fundamentals
102 topics · 12 practice pagesHigh-level design
94 topics · 30 mock interviewsLow-level design
110 topics · 27 mock interviews
Frontend, ML and GenAI system design are being written.