问题
On a recent project, I used NServiceBus to update multiple (typically two) MongoDB read models as a result of commands initiated by users. After reading more about MediatR it seems like, as the read models are part of this application (i.e. no other services are consuming the ISomethingHappened
events), NServiceBus was probably overkill here.
That said, the guaranteed delivery and retries that NServiceBus provides aren't necessary with MediatR, however for most applications, I can't afford to have a read model update fail. If that's the case, should I stick with NSB or can MediatR handle this use case for multiple non-transactional inserts/updates?
来源:https://stackoverflow.com/questions/40759503/is-mediatr-a-good-fit-for-updating-multiple-mongodb-read-models