Is MediatR a good fit for updating multiple MongoDB read models?

江枫思渺然 提交于 2020-01-05 05:49:06

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!