Amazon | Onsite | HLD | Widgets In Search Page
Question:
You have a basic search page that loads search results (products) when given a query. Start by describing the architecture for this.
thats the question, When I started describing, then came the following questions
Followup Question:
Multiple teams want to add widgets to the page like Ads, Product Recommendations, Previously Bought Items, Product Reviews etc. Describe the architecture for such a system.
this was the main question that he wanted to discuss,
What I told him is that we will have a widget repository (widget management service kind) where other teams will be able to build and persist the widgest as per their requirement, and we will be fetching the widgests from the repository and showing on the UI
More questions on this
LP Questions:
NOTE:
TBH, what I felt is, the interviewer looked like he was just trying to show me that he has much more knowledge and I know nothing, the way he was talking/asking the questions was not polite, I really dont understand how they can expect a candidate to design an entire new system/feature flawlessly within 30 minutes choosing all the right tech stack and covering all the edge cases, thats really impossible until you have already memorized the solution
Full Interview Experience here: