When to load data
A travel booking app goes list → detail → booking. For each screen, how do you decide whether to load its data when the screen appears or ahead of time from the previous screen?
A travel booking app goes list → detail → booking. For each screen, how do you decide whether to load its data when the screen appears or ahead of time from the previous screen?
Decide by transition probability × data size × latency sensitivity. Include the detail's essentials (title, price, hero image) in the list response so they show instantly, and load the rest on entering detail. Prefetch only near the visible items, and cut back on cellular and Low Power Mode.
iOS system designShort answerAdvanced
Design a discovery screen full of thumbnail tiles, like Snapchat Discover. It scrolls…
#prefetch #memory
Performance and debuggingShort answerBasics
Because of deep links or state restoration you have to push dozens of view controllers…
#memory #navigation
Performance and debuggingShort answerBasics
A phone screen question: "When you design an iOS app, what do you keep in mind to use…
#battery #memory
iOS system designShort answerBasics
For a mobile feed, would you paginate by offset or by cursor (keyset)? Justify it with…
#prefetch