Model an online shop in MongoDB

A architecture exercise of about 30 minutes: read the statement, solve «Model an online shop in MongoDB» in the browser and get a review like in a real interview.

Architecture · 30 min
Loading…

Statement

An online shop is moving to MongoDB and you have to design the data model: products with variants, customers, orders and reviews, plus the sales reports the business asks for. Explain which collections you have, what you embed and what you reference, which indexes you create for the main queries and how the model holds up when volume multiplies.