Design a server-driven home page like Swiggy or Flipkart: widget layouts from the server, personalisation and caching
Problem
Design the web home page of a large consumer app, such as a food delivery or e-commerce home page like Swiggy's or Flipkart's. The page is a long vertical list of sections: a location header, a search bar, hero banners, category tiles, "offers for you", "order again", carousels of restaurants or products, a deals countdown and an infinite list at the bottom.
- change which sections appear, in what order, for which city or user segment, without a frontend release;
- personalise parts of the page per user (recent orders, recommendations, personal offers);
- run A/B tests on the layout and on individual sections;
- launch a sale banner at midnight and switch off a broken section within minutes.
Ref. UR-1469 · © UIRound · uiround.com/questions/design-a-server-driven-home-page-like-swiggy-or-flipkart-widget-layouts-from-the-server-personalisation-and-caching
Unlock this question
The full problem and its complete answer are part of Pro.
- 2
- code listings
- 4
- follow-up questions
What's inside
- The full problem, with examples
- Step-by-step
- Requirements
- Architecture
- Data model and state
- Key flows and trade-offs
- Performance and reliability
- Follow-up questions
- Card worldwide
- UPI and net banking in India
- One-time payment, nothing renews
Stuck? Take a hint
- 1Start by splitting the page into what is the same for many users (layout, banners, categories for a city) and what is per user (recently ordered, your offers). That split decides your cache keys.
Practise this round first
Work through the steps of a design framework on a 45-minute clock, writing notes as you would say them out loud. The model answer stays hidden until you finish, then you check your design against 8 checkpoints.
Requirements, Architecture, Data model, Interface, Optimizations. The common choice for frontend rounds. How it works
Private, and saved in this browser as you type. All your notes are on My lists.