filmov
tv
CQRS Explained in 5 MINUTES | What is CQRS?
Показать описание
CQRS stands for Command and Query Responsibility Segregation. The term was introduced by Greg Young in 2010 to describe a pattern that advocates for clear code separation between the state mutation and data retrieval. If we imagine a traditional layered architecture, CQRS slices our core application logic vertically, creating two models: one used for reads and the other used for writes.
When compared to CRUD, Read operations map to Queries, while Create, Update and Delete operations are replaced by Commands.
In its strict definition: a command is not data centric. It is not about creating, updating or deleting a single record on our database. A Command represents the intention to perform a task. It maps more closely to a complex business operation like generating an invoice, booking a hotel room, or provisioning a bare metal server.
CQRS can also help satisfy high performance and scalability requirements, especially when combined with a microservices architecture and asynchronous processing.
📅 *Let's have a 1:1 Call to discuss anything you wish* 📅
🤓 There's more on my website! (articles, scripts, code snippets, etc...): 🤓
🤝 Connect with me: 🤝
👌Get a CodeCrafter Discount 👌
#systemdesign #softwarearchitecture #softwaredevelopment
When compared to CRUD, Read operations map to Queries, while Create, Update and Delete operations are replaced by Commands.
In its strict definition: a command is not data centric. It is not about creating, updating or deleting a single record on our database. A Command represents the intention to perform a task. It maps more closely to a complex business operation like generating an invoice, booking a hotel room, or provisioning a bare metal server.
CQRS can also help satisfy high performance and scalability requirements, especially when combined with a microservices architecture and asynchronous processing.
📅 *Let's have a 1:1 Call to discuss anything you wish* 📅
🤓 There's more on my website! (articles, scripts, code snippets, etc...): 🤓
🤝 Connect with me: 🤝
👌Get a CodeCrafter Discount 👌
#systemdesign #softwarearchitecture #softwaredevelopment
Комментарии