CQRS+NServiceBus+EventStore

I’m trying o use CQRS pattern with NServiceBus and Event Store. I have few questions

  1. UI -> Command -> CommandHandler->ServiceBus->Business Process ( 1 to many steps to perform the requested command). Do I publish events for each changes to the service bus and then let the [ event store handler] handle these messages and write to the event store ? or directly write to the event store from business process as things get executed ?

  2. One of your talks you have mentioned that , you like to store commands as well. Where do you store commands ? (event store or some other way)

  3. How do I Plug-in the Event Store with NserviceBus seamlessly ?

4.Can I use MS SQL server to store event store events ?

Thank you

Baski

1. UI -> Command -> CommandHandler->ServiceBus->Business Process ( 1
to many steps to perform the requested command). Do I publish events
for each changes to the service bus and then let the [ event store
handler] handle these messages and write to the event store ? or
directly write to the event store from business process as things get
executed ?

You would most likely write to event store then push asynchronously to
your service bus eg command handler->persist
events->subscription->publish to nsb

2. One of your talks you have mentioned that , you like to store
commands as well. Where do you store commands ? (event store or some
other way)

You can easily store them in event store (its just a stream...)

3. How do I Plug-in the Event Store with NserviceBus seamlessly ?

depends how you want to use event store and nservicebus

4.Can I use MS SQL server to store event store events ?

Not sure what this means. Eventstore is a database not a library

Thank you so much Greg.

  1. How do I Plug-in the Event Store with NserviceBus seamlessly ?

In NServiceBus Configuration I can configure what Persistent plug in I would like to use ? ( I assume that’s for service bus message storage and not for Event store)

4.Can I use MS SQL server to store event store events ?

Event store stores all the events in a local db folder. I was wondering is it possible to ask event store to store all the event data in SQL table. May be I completely misunderstood the concept :slight_smile:

I’m trying to compare the Windows Azure Event Hubs with Event store , I’m not sure that’s a right comparison to begin with. Is it ?

4.Can I use MS SQL server to store event store events ?

   Event store stores all the events in a local db folder. I was
wondering is it possible to ask event store to store all the event
data in SQL table. May be I completely misunderstood the concept :slight_smile:

Event store is a database. If you want a library to build something on
top of say sql server look at neventstore