News feed design
Design an infinite-scroll feed screen like Twitter's from the iOS client's point of view. Walk me through where the data goes between the network response and the screen, and what the screen actually reads as its source.
Design an infinite-scroll feed screen like Twitter's from the iOS client's point of view. Walk me through where the data goes between the network response and the screen, and what the screen actually reads as its source.
Responses from a cursor-paginated API get upserted into a local DB, and the UI subscribes to that DB as the single source of truth. Images go through a separate loader and cache, writes use optimistic updates plus an outbox, and performance rests on cell prefetching, downsampling, and measuring scroll hitches.
iOS system designShort answerAdvanced
Design the client for a money transfer app's transaction history screen. Requirements…
#pagination #offline #realtime
iOS system designShort answerAdvanced
An iOS app implements infinite scroll for a photo feed seen by hundreds of millions of…
#feed #pagination #cache
iOS system designShort answerAdvanced
Design the "this month's spending and remaining limit" card in a credit card app. The…
#cache #offline
iOS system designShort answerAdvanced
A real-time social news feed receives incremental WebSocket events and an initial REST…
#feed #realtime