8000 Messenger QueryBus · Issue #28950 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

Messenger QueryBus #28950

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

Closed
sukei opened this issue Oct 22, 2018 · 2 comments
Closed

Messenger QueryBus #28950

sukei opened this issue Oct 22, 2018 · 2 comments

Comments

@sukei
Copy link
Contributor
sukei commented Oct 22, 2018

Since this recent move, the MessageBusInterface:: dispatch() method can't return anything. I build CQRS apps using the Messenger since its release and use it to define the following three buses: command bus, event bus, and query bus. How are we supposed to do with the query bus right now ? Should I stop using a bus for the query part? Or mutate the message to transport the response? Thanks for your answers!

@nicolas-grekas
Copy link
Member

Hi, thanks for asking. The PR introducing this change gives some alternatives, see #28909.
Would any work for you?

@sukei
Copy link
Contributor Author
sukei commented Oct 23, 2018

Sounds good. I'll follow your advices. Many thanks!

@sukei sukei closed this as completed Oct 23, 2018
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

3 participants
0