How to handle transaction in event driven architecture?
问题 I'm currently playing with DDD & CQRS, and I moved forward a legacy application. Let's say I have an Article entity, on which I can cast votes. When a Vote is casted on an Article, I want to increment or decrement a counter accordingly to the value of the vote. This counter is part of my Query model and thus I don't think it fits the Domain Model, for such reasons, I decided to write a CastArticleVoteService in which I put the business logic about a vote, and I dispatch an Event to be handle