madslundt / NetCoreMicroservicesSample

Sample using micro services in .NET Core 3.1 Focusing on clean code
MIT License
682 stars 171 forks source link

[QUESTION] EventRouting for CQRS #15

Open 3dotsDev opened 3 years ago

3dotsDev commented 3 years ago

perhaps I have not interpreted this correctly... but .... when the aggregates create a new event... is this send to rabbit to ? I have the issue that i get dublicate PK exception on the MSSql Datatbase becauase of the event is triggered more than once...

im not sure, in an other question you wrote me that every event makes a full circle ( in my mind i think rabbit is mentioned with this)

jbonnett92 commented 2 years ago

This is where idempotency needs to be implemented, please check this out: https://www.youtube.com/watch?v=ZOZ8LuVS8VY