Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve message producer documentation #129

Open
codeliner opened this issue Aug 10, 2016 · 1 comment
Open

Improve message producer documentation #129

codeliner opened this issue Aug 10, 2016 · 1 comment

Comments

@codeliner
Copy link
Member

Provide better explanation and examples of async message routing.

See chat discussion for the why?

Guy Radford @guyradford 22:08
...
I have managed to get the router to put the ActionEvent out through Bernard... but the router then try to route the message internally... I have trued to get$actionEvent->stopPropagation(true); and $actionEvent->setParam(MessageBus::EVENT_PARAM_MESSAGE_HANDLED, true); but neither works.

Alexander Miertsch @codeliner 22:27
...
Your router invokes BernardMessageProducer directly? If so, this is the problem. The router should route your command to the BernardMessageProducer only. All message producers are callable so they can be used as (or better replace) command handlers. We should make that more clear in the docs.
For now take a look at the proophessor-do snapshot tutorial. In the last paragraph you can see how the TakeSnapshot command is routed to zeromq-message-producer instead of a in-process-command-handler (see the route config example).
You just need to do the same in your application. You don't even need a specific router for the task.

@prolic
Copy link
Member

prolic commented Oct 22, 2018

@codeliner are you going to provide that documentation (two years later) or do you want to close this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants