Before posting this, I referred many sites and learning platforms but saw similar pattern of developing CQRS with event sourcing. Again to have proper events you need to follow DDD pattern. I have below questions.
- Can we keep read and write DB in sync just by publishing event from write model and consume it at read model using event handler and updating read database
- Why Event-Sourcing and replay of events needed if my requirement is to only see latest data
- I can manage audit of data as and when events reaches at event handler
- I can version messages based on timestamp in case if race condition.
- Please explain by doing steps 1,3 and 4, am I still following CQRS pattern?
FYI, I am using .NetCore 3.1, AWS Lambda services, MassTransit as a MessageBus and SQS as a transport.
Thanks in advance.
Aucun commentaire:
Enregistrer un commentaire