|Commands Bus id name|
|Events Bus id name|
|QueryBus id name|
first we crate command and command handler.
The command handler will publish events on the commands bus.
we execute commands using
now we create command handler that execute the command
events handlers listen to events bus and react to events
queries used to query handler asynchronously
now we can query for data using the
sagas used to listen to multi events and fire new commands
you will need to load the bus module in
now call the commands events and queries will be published to rabbitMQ
it is possible to define custom bus options