-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Headers exchange - php example #554
Comments
Anyone can help with this? I have same problem to find correct way tou use "headers" exchange type. Nowhere I have found complete example. Examples here, in files "amqp_message_headers_snd.php" and "amqp_message_headers_recv.php" seems to be absolutelly incorrect, because, as suggested @Valantir007 - there used wrong exchange type. Also I do not see there any code that can be considered as filtering by headers in receiver file |
Hi @Valantir007 @Zaporozhec7 You can find working example in #735 |
fixed by #735 |
Really thank you :) |
Hi,
I have a problem with headers exchange.
I wrote sender with this code:
sender
and receiver with this one:
receiver
I read documentation and I don't know why exchange_declare has second parameter "topic" but not "headers".
The documentation says that the "routing key" is skipped and only the headers are taken into account. In sender script is variable "routingKey"... but why? So the routing key is required or not...?
I set header "x-match" = 'any' and "test" = "test" in sender script but where I need to set "test" header in receiver?
Maybe I don't understand correctly how header exchange works so please help me to understand.
The text was updated successfully, but these errors were encountered: