-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Messenger] AMQP configuration and MessageBus::dispatch enhancements #29950
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
Comments
The dead-letter exchange feature seems to work like this:
|
…essage publishing (G15N, sroze) This PR was merged into the 4.3-dev branch. Discussion ---------- [messenger] Adds a stamp to provide a routing key on message publishing | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #29950 | License | MIT | Doc PR | symfony/symfony-docs#11236 Adds a stamp allowing to set a `routing_key` at `MessageBus::dispatch()` level. ```php $message = (new Envelope('message'))->with(new RoutingKeyStamp('routing_key')); $bus->dispatch($message); ``` Commits ------- a515635 Simply code and rename "configuration" to "options" 3151b54 [messenger] AMQP configurable routing key & multiple queues
Maybe this is suitable for multiple routing. (Symfony 4.3) https://gist.github.com/isopen/8255257b983f73b4e4d0899ebcacd474 |
May I ask if RPC feature was introduced or not please? If so, could please someone share a link? I cannot find an info on that. Thanks. |
@bentcoder no, it wasn't. |
AMQP configuration
Based on the current configuration options, we can define only one
routing_key
per queue withrouting_key
option. This could be improved to allow us to define multiple routing keys withrouting_keys
options. As we all know by now a queue bound to a topic or direct exchange can have more than onerouting_key
. This is how it would enhance things.e.g.
MessageBus::dispatch
We should have a way of setting
routing_key
atMessageBus::dispatch()
level. Whether it is via an Envelope or a Stamp.e.g.
Not as critical as the ones above for now but:
It would also be nice to see a:
MessageBus::dispatch()
. This is obviously a synchronise call.The text was updated successfully, but these errors were encountered: