Something went wrong!
Hang in there while we get back on track
Advanced Event Sourcing and CQRS Scenario
Generates an advanced banking platform scenario requiring event sourcing with CQRS architecture. Tests understanding of write-side events vs read-side projections, event versioning, schema evolution, and regulatory audit requirements.
Input
What you provide to the skill
Give me an advanced database schema practice scenario involving event sourcing and CQRS
Output
What the skill generates for you
DATABASE SCHEMA PRACTICE: Event-Sourced Banking Platform
Scenario: You’re a PM at a fintech startup building a modern banking platform. Due to strict regulatory requirements around audit trails and the need to reconstruct account state at any point in time, your engineering team has decided to implement event sourcing with CQRS (Command Query Responsibility Segregation).
Core Features to Support:
- Customer account creation and management
- Money transfers between accounts (both internal and external)
- Transaction history and account balance queries
- Account statement generation for any date range
- Regulatory audit trail showing every state change
- Real-time fraud detection requiring access to event stream
- Customer-facing balance and transaction queries (must be fast, <100ms)
- Ability to “replay” account state to any point in time for investigations
Scale Context:
- 5 million customers
- 200 million transactions per month
- Regulatory requirement to retain all events for 7 years
- Customer queries for balance/history must be <100ms
- Event processing for fraud detection must happen within 500ms
Your Task: Design the schema by defining:
- What tables or collections do you need for both the write side (events) and read side (projections)?
- What are the key fields for each?
- How do events relate to projections? What’s the update mechanism?
- Would you use SQL or NoSQL for each side? Why?
- How would you handle event versioning and schema evolution?
- What are the scaling considerations for event storage and projection updates?
Take 10-15 minutes to design your schema, then share your design.
About This Skill
Practice database schema design for PM interviews with realistic product scenarios and detailed feedback.
View Skill DetailsMore Examples
E-Commerce Marketplace Schema Practice
Generates a realistic multi-seller e-commerce marketplace scenario with inventory, orders, payments, and reviews. Tests entity modeling for complex marketplace relationships including multi-seller orders and commission-based payments.
Social Media App Schema Evaluation
Evaluates a user-submitted social media schema with users, posts, follows, and likes tables. Demonstrates comprehensive feedback including missing fields, feed generation strategies, relationship cardinality, and PM-relevant trade-offs.