Weitere ähnliche Inhalte
Ähnlich wie Introduction to CQRS (20)
Mehr von Pieter Joost van de Sande (13)
Introduction to CQRS
- 40. Getting data shouldbesimple (select * from x where y)Examples: Get all products of user X Get total price of all orders of month May
- 51. I want to tell the system something Please move customer X to this new address
- 52. Change has intent Users don’t make changes for nothing. This intent has value! Correct the address for user X Customer X moved to new address VS.
- 53. Multiple steps Users can take multiple steps before they reach the end goal. These steps can be very useful to us.
- 56. Contain the intent of the change.Examples: AddProductToShoppingCart PurchaseOrder MoveUserToNewAddress CorrectAddressForUser
- 59. Read side Write side Read databases Commandhandlers commands query User interface
- 60. Read side Write side Read databases Facade Domain Commandhandlers commands DTO’s User interface
- 61. Greg Young: “State transitions are an important part of our problem space and should be modeled within our domain.”
- 64. Read side Write side Read databases Facade Domain Commandhandlers commands DTO’s User interface
- 65. Read side Write side Read databases Repository Facade Domain Commandhandlers commands DTO’s User interface
- 66. Read side Write side ? Read databases Repository Facade Domain Commandhandlers commands DTO’s User interface
- 68. Other systems use it for intergration.Examples ProductAddedToShoppingCart OrderPurchased UserMovedToNewAddress AddressCorrectedForUser
- 71. Read side Write side Denormalizers events Read databases Repository Facade Domain Commandhandlers commands DTO’s User interface
- 75. Read side Write side events events Denormalizers Event bus events events Read databases Repository Facade Domain Commandhandlers commands DTO’s User interface