Design a Domain-Owned Customer Orders Data Product
Last updated: November 29, 2026
Quick Overview
A large retailer wants to move from a central data lake team to a data mesh. Design the customer orders data product owned by the orders domain team, including its interfaces, quality guarantees and how other domains discover and consume it.
Thoughtworks
November 29, 20260
0
0 solved
A large retailer wants to move from a central data lake team to a data mesh. Design the customer orders data product owned by the orders domain team, including its interfaces, quality guarantees and how other domains discover and consume it.
Data mesh was defined by a Thoughtworks colleague, and data and AI practice interviews often ask candidates to make its principles concrete. The interviewer is checking whether you can turn domain ownership, data as a product, self-serve platform and federated governance into real pipelines, contracts and SLOs.
What the Interviewer Expects
- Defines output ports (batch tables, event stream, query API) with schemas and versioning
- Sets measurable SLOs for freshness, completeness and quality
- Separates domain responsibilities from the self-serve platform's
- Covers governance: PII handling, access policies, global identifiers
- Explains discovery via a catalog and consumer onboarding
- Handles schema evolution without breaking consumers
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- The marketing domain wants a field the orders team considers internal. Who decides?
- How do you join orders with the customer domain's product without a central team?
- How would you charge or account for compute across domains?
- What signs would tell you the client is not ready for data mesh?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Consumers: finance (daily revenue reconciliation), marketing (customer segments), supply chain (near real time demand). Needs: order facts with line items, freshness within 15 minutes for the stream a...
High-Level Design
Inside the domain: the order service emits domain events (OrderPlaced, OrderShipped, OrderReturned) to Kafka via an outbox table; CDC is a fallback for legacy writes. A domain pipeline (Spark or dbt o...