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

Consumer priority setting #745

Open
Emreiris opened this issue Jan 12, 2023 · 0 comments
Open

Consumer priority setting #745

Emreiris opened this issue Jan 12, 2023 · 0 comments

Comments

@Emreiris
Copy link

Hello, I want to put a backup consumer to the main consumer to cover the case the main consumer goes down. I have given priority as
` amqp_table_t args;
#if 1
amqp_table_entry_t entry = {
.key = amqp_cstring_bytes("x-priority"),
.value = {.kind = AMQP_FIELD_KIND_I32, .value = m_priority}};

args.entries = &entry;
args.num_entries = 1;
#endif

amqp_basic_consume(conn, 1, queuename, amqp_empty_bytes, 0, 1, 0,
amqp_empty_table);`
m_priority is a number between 1 and 10. But It seems no effect on consuming messages from the queue. How can I give priority to consumers?

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

No branches or pull requests

1 participant