April 5, 2021
Here is the link.
Persisting a customer and order history in MongoDB
Denormalized = efficient lookup
Other kinds of views
AWS cloud search
- Text search as a service
- View updater batches aggregate to index
- View query service does text search
AWS DynamoDB
- NoSQL as a Service
- On demand scalable specify desired read/write capacity
- Document and key value data models
- Useful for denormalized UI oriented views
Benefits and drawbacks of CQRS
Benefits
- Necessary in an event sourced architecture
- Separation of concerns = simpler command and query models
- Supports multiple denormalized views
- Improved scalability and performance
Drawbacks
- Complexity
- Potential code duplication
- Replication lag/eventually consistent views
No comments:
Post a Comment