I’m probably going to be using NService bus, I understand that the dispatcher of events is going to publish the events to the subscribers but i’m wondering if it’s correct to publish the commands in the 1st instance?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Publishing and a pub/sub workflow makes sense for events however Commands are meant to have a single processor and therefore should be ‘sent’ not published. NServiceBus supports this concept in addition to pub/sub.
Note also that in a CQRS architecture queries are not commands and therefore not best suited for use with NServiceBus.