Daily iOS
iOS system design

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.

How would an interviewer hear this answer? You'll see whether they'd move on, dig in, or say no, and which sentences would trip you up. Your score doesn't change.
See the short answer

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.

Share a question