Mobile system design interview: the framework and every case study
There are 18 case studies. Each one is in the topic where its hardest part belongs. Each card shows the level where you can start, the reading time and what to read first. Most cases cover Android and iOS. The notifications screen case is Android only.
Offline and syncFeeds and mediaSDKs and librariesLive data and paymentsThe five-step method
Offline and sync
Apps that keep working with no network, and sync later.
- Design a chat appOutbox, safe retries (idempotent sends), and sync with WebSocket and push.
- Topic
- Offline and sync Also: Live data and payments
- Starts at
- Mid-level (also in the staff track)
- Reading time
- 15 min read
Build guide: 14 min - Builds on
- The five-step method
- Status
- Free
- Design photo backup and file syncUploads that can resume, sync by blocks, and edit conflicts.
- Topic
- Offline and sync Also: Feeds and media
- Starts at
- Mid-level (also in the staff track)
- Reading time
- 14 min read
Build guide: 18 min - Builds on
- Design a chat app
- Status
- Free
- Design a travel plans appFriends edit a trip together, even offline, and no change is lost without a sign.
- Topic
- Offline and sync
- Starts at
- Senior
- Reading time
- 15 min read
Build guide: 16 min - Builds on
- Design photo backup and file sync
- Status
- Free
- Design a public transport appA timetable that works offline, live delays on top, and careful use of location and battery.
- Topic
- Offline and sync Also: Live data and payments
- Starts at
- Senior
- Reading time
- 6 min read
- Builds on
- Design a stock ticker app
- Status
- Free teaser
- Design a run or trip recording appKeep recording with the screen locked, survive a killed app, and turn noisy GPS points into a believable distance.
- Topic
- Offline and sync
- Starts at
- Senior
- Reading time
- 14 min read
- Builds on
- Design photo and file sync
- Status
- Free
Feeds and media
Long lists, images and video that load fast and stay fresh.
- Design a news feedPaging, optimistic writes (show a change first), and keeping the cache fresh.
- Topic
- Feeds and media Also: Offline and sync
- Starts at
- Mid-level
- Reading time
- 15 min read
Build guide: 10 min - Builds on
- Design a chat app
- Status
- Free
- Design an image loading libraryMemory and disk caches, decoding, and cancelling requests.
- Topic
- Feeds and media Also: SDKs and libraries
- Starts at
- Mid-level
- Reading time
- 15 min read
Build guide: 20 min - Builds on
- Design a news feed
- Status
- Free
- Design a video streaming appLoading ahead (prefetch), adaptive bitrate, and playback state.
- Topic
- Feeds and media Also: Live data and payments
- Starts at
- Senior (also in the staff track)
- Reading time
- 15 min read
Build guide: 21 min - Builds on
- Design an image loading library
- Status
- Free
- Design reels, video and photos for a travel appA player pool, a small preload window, uploads that resume, and photos that fit in memory.
- Topic
- Feeds and media Also: Offline and sync
- Starts at
- Senior (also in the staff track)
- Reading time
- 20 min read
Build guide: 20 min - Builds on
- Design a video streaming app
- Status
- Free
- Design a notifications screen in Jetpack ComposeA sealed row model, a countdown that uses a clock, and Accept and Decline that can fail.
- Topic
- Feeds and media Also: Live data and payments
- Starts at
- Senior (also in the staff track)
- Reading time
- 28 min read
Build guide: 25 min - Builds on
- Design a news feed
- Status
- Free
SDKs and libraries
Code that other developers add to their apps.
- Design a pagination libraryThe library API, generic types, and which requests go first.
- Topic
- SDKs and libraries Also: Feeds and media
- Starts at
- Mid-level
- Reading time
- 15 min read
Build guide: 20 min - Builds on
- Design a news feed
- Status
- Free
- Design a push notification SDKHow push tokens change over time, delivery, and deep links.
- Topic
- SDKs and libraries Also: Live data and payments
- Starts at
- Senior (also in the staff track)
- Reading time
- 15 min read
Build guide: 20 min - Builds on
- Design a chat app
- Status
- Free
- Design an analytics SDKSending events in batches, saving them on the device, privacy, and versions.
- Topic
- SDKs and libraries Also: Offline and sync
- Starts at
- Senior (also in the staff track)
- Reading time
- 14 min read
Build guide: 18 min - Builds on
- Design a chat app
- Status
- Free
- Design feature flags and remote configValues saved on the phone, a rollout that stays stable, and a kill switch that works when the flag service fails.
- Topic
- SDKs and libraries Also: Offline and sync
- Starts at
- Senior (also in the staff track)
- Reading time
- 15 min read
Build guide: 28 min - Builds on
- Design an analytics SDK
- Status
- Free
Live data and payments
Data that changes live, and actions that must happen once.
- Design a hotel or ride booking appHolds, server time, payments, and search.
- Topic
- Live data and payments Also: Offline and sync
- Starts at
- Mid-level (also in the staff track)
- Reading time
- 15 min read
Build guide: 18 min - Builds on
- Design a chat app
- Status
- Free
- Design a stock ticker appStreaming updates, limiting how often the screen changes, and an always-online app.
- Starts at
- Senior (also in the staff track)
- Reading time
- 14 min read
Build guide: 16 min - Builds on
- Design a chat app
- Status
- Free
- Design a state machine for a mobile flowExplicit states and events for a checkout, double taps that do nothing, and a recovery path when the app is killed mid-payment.
- Starts at
- Senior
- Reading time
- 14 min read
Build guide: 20 min - Builds on
- Design a hotel or ride booking app
- Status
- Free
- Design in-app purchases and subscriptionsThe server decides who owns what, a paid user is never left without access, and renewals and refunds arrive on their own.
- Starts at
- Senior
- Reading time
- 14 min read
- Status
- Free
The five-step method
Mobile rounds test the client. The client is the app on the phone. The round covers local storage, networking, background work, offline use, battery use and failure handling. There are no load balancers and no sharding. The case studies follow these five steps. Their numbered sections run in a slightly different order, because the architecture comes before the data model there. Several courses teach a five-step method. This one is my own, built from the case studies on this site.
- Scope and constraints: what the app must do, what it can skip, and the limits that shape the rest: offline use, battery and platform rules.
- Data and contracts: the data objects (entities), the API, and the IDs that make a retry safe.
- Client structure: UI, state holder, repository, local database, network, and who owns what.
- Make the hard part work: the send path, sync, caching or ordering, explained in full detail.
- Break it, ship it, roll it back: what fails, how you would know, and how to release the change and roll it back (undo it).
How a 45-minute round is spent
This is an example split. Companies differ, but the hard part always gets the largest share.
- Scope and constraints4 min
- Data and contracts10 min
- Client structure8 min
- Make the hard part work18 min
- Break it, ship it, roll it back5 min
Build guides (17)
Read the case study first. Then open its build guide for the database tables, API, code and platform limits.
Offline and sync
- Build it: a chat app on Android and iOSThe schema, API, code and platform limits for a chat app.
- Interview case
- Design a chat app
- Topic
- Offline and sync
- Reading time
- 14 min
- Build it: photo backup and file sync on Android and iOSThe schema, API, code and platform limits for photo backup and file sync.
- Interview case
- Design photo backup and file sync
- Topic
- Offline and sync
- Reading time
- 18 min
- Build it: an offline-first travel plans app on Android and iOSThe schema, API, code and platform limits for an offline-first travel plans app.
- Interview case
- Design a travel plans app
- Topic
- Offline and sync
- Reading time
- 16 min
Feeds and media
- Build it: a news feed on Android and iOSThe schema, API, code and platform limits for a news feed.
- Interview case
- Design a news feed
- Topic
- Feeds and media
- Reading time
- 10 min
- Build it: an image loading library on Android and iOSThe schema, API, code and platform limits for an image loading library.
- Interview case
- Design an image loading library
- Topic
- Feeds and media
- Reading time
- 20 min
- Build it: a video streaming app on Android and iOSThe schema, API, code and platform limits for a video streaming app.
- Interview case
- Design a video streaming app
- Topic
- Feeds and media
- Reading time
- 21 min
- Build it: reels, video and photos on Android and iOSThe tables, REST calls, code and platform limits for reels, video and photos.
- Interview case
- Design reels, video and photos for a travel app
- Topic
- Feeds and media
- Reading time
- 20 min
- Build it: a notifications screen in Jetpack ComposeThe JSON, Kotlin code, strings and tests for a notifications screen with a countdown.
- Interview case
- Design a notifications screen in Jetpack Compose
- Topic
- Feeds and media
- Reading time
- 25 min
SDKs and libraries
- Build it: a pagination library on Android and iOSThe schema, API, code and platform limits for a pagination library.
- Interview case
- Design a pagination library
- Topic
- SDKs and libraries
- Reading time
- 20 min
- Build it: a push notification SDK on Android and iOSThe schema, API, code and platform limits for a push notification SDK.
- Interview case
- Design a push notification SDK
- Topic
- SDKs and libraries
- Reading time
- 20 min
- Build it: an analytics SDK on Android and iOSThe schema, API, code and platform limits for an analytics SDK.
- Interview case
- Design an analytics SDK
- Topic
- SDKs and libraries
- Reading time
- 18 min
- Build it: feature flags and remote config on Android and iOSThe schema, API, code and platform limits for feature flags and remote config.
- Interview case
- Design feature flags and remote config
- Topic
- SDKs and libraries
- Reading time
- 28 min
- Build it: a state machine for a mobile flow on Android and iOSThe types, reducer, store, saved attempt record, tests and platform limits for a state machine.
- Interview case
- Design a state machine for a mobile flow
- Reading time
- 20 min
Live data and payments
- Build it: a booking app on Android and iOSThe schema, API, code and platform limits for a booking app.
- Interview case
- Design a hotel or ride booking app
- Reading time
- 18 min
- Build it: a stock ticker app on Android and iOSThe schema, API, code and platform limits for a stock ticker app.
- Interview case
- Design a stock ticker app
- Reading time
- 16 min
- Build it: in-app purchases and subscriptions on Android and iOSThe server tables, API, purchase manager, tests and platform limits for in-app purchases.
- Interview case
- Design in-app purchases and subscriptions
- Reading time
- 16 min
- Build it: a run or trip recording app on Android and iOSThe tables, location settings, distance filter code, kill recovery and platform limits for a run recorder.
- Interview case
- Design a run or trip recording app
- Topic
- Offline and sync
- Reading time
- 15 min
These case studies have no build guide: Design a public transport app.
Guides
Guides that connect the case studies.
- Idempotency keys on mobile: how to retry without sending twiceOne ID for one action, sent with every retry, so a lost reply never charges or sends twice.Free
- Cursor versus offset paging on mobile: why page numbers breakWhy items repeat or vanish when a list changes while you scroll, and why a cursor fixes it.Free
- WorkManager vs BGTaskScheduler: what runs your background workAndroid keeps your job and runs it when the rules are true. iOS only gives you a chance to run.Free
- Staff-level mobile system design: what the round testsHow staff answers differ from senior answers, what interviewers can see, and a four-week practice plan.Free
- Offline-first mobile system design: one model, six case studiesThe official offline-first model (the app keeps working without a network) used for chat, feed, upload, booking, analytics and push.Free
- Native vs cross-platform: write the decision recordA staff-level decision record (ADR) for choosing a framework. It covers criteria, the assumption that would change the choice, migration, parity tests, libraries with no owner, rollback, and a free template.Free
Get the free one-page cheat sheet
One page: the five steps, a 45-minute time plan and two checklists. Print it or keep it on your phone.
We email you the cheat sheet after you confirm your address. You can also open it now from the Start here page. You also get a short email each week with a follow-up round, and a note when a new case is published. Unsubscribe any time. Privacy.