In-app notification center
Design the "notifications" tab of a commerce app: a list of order, promotion, and shipping notifications, read/unread state, and a badge. Focus on local storage and syncing read state with the server.
Design the "notifications" tab of a commerce app: a list of order, promotion, and shipping notifications, read/unread state, and a badge. Focus on local storage and syncing read state with the server.
The server is the source and the client caches pages in a local DB. Marking as read applies locally right away and syncs to the server in batches (outbox). Deltas arrive through silent push, and on launch and foreground entry you refresh with a since cursor. For 1000+ items, use cursor pagination, DB indexes, diffable partial updates, and a server-aggregated unread count.
iOS system designShort answerAdvanced
Design an infinite-scroll feed screen like Twitter's from the iOS client's point of view…
#pagination
iOS system designShort answerBasics
For a mobile feed, would you paginate by offset or by cursor (keyset)? Justify it with…
#pagination
iOS system designMultiple choiceBasics
You're loading a feed with offset pagination. While the user is reading page 2, 3 new…
#pagination
iOS system designShort answerAdvanced
Design the client for a money transfer app's transaction history screen. Requirements…
#pagination