Skip to content

feat(iii-queue): add RabbitMQ priority queue support#1893

Draft
ytallo wants to merge 1 commit into
mainfrom
feat/rabbitmq-priority-queues-impl
Draft

feat(iii-queue): add RabbitMQ priority queue support#1893
ytallo wants to merge 1 commit into
mainfrom
feat/rabbitmq-priority-queues-impl

Conversation

@ytallo

@ytallo ytallo commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Declare RabbitMQ queues with x-max-priority and publish messages with a per-message priority so higher-priority messages are delivered first.

  • config: add max_priority (1-255) to FunctionQueueConfig
  • subscriber_config: add max_priority + maxPriority extractor
  • types: add Job.priority (carried through retries and DLQ redrive)
  • topology: set x-max-priority on the main subscriber/function queues
  • publisher/adapter: read _priority from message data and set the AMQP priority property on publish; preserve it on retry and DLQ redrive
  • builtin tests: fill in max_priority on SubscriberQueueConfig literals

Per-message priority is read from a reserved _priority field in the message data; a queue becomes a priority queue only when its config sets max_priority. Verified with cargo check --features rabbitmq.

What

Why

Notes

Declare RabbitMQ queues with x-max-priority and publish messages with a
per-message priority so higher-priority messages are delivered first.

- config: add max_priority (1-255) to FunctionQueueConfig
- subscriber_config: add max_priority + maxPriority extractor
- types: add Job.priority (carried through retries and DLQ redrive)
- topology: set x-max-priority on the main subscriber/function queues
- publisher/adapter: read _priority from message data and set the AMQP
  priority property on publish; preserve it on retry and DLQ redrive
- builtin tests: fill in max_priority on SubscriberQueueConfig literals

Per-message priority is read from a reserved _priority field in the
message data; a queue becomes a priority queue only when its config sets
max_priority. Verified with cargo check --features rabbitmq.
@vercel

vercel Bot commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
iii-website Ready Ready Preview, Comment Jun 19, 2026 9:16pm

Request Review

@coderabbitai

coderabbitai Bot commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: cc079d5e-c2c5-4893-a5d4-eb8b8e3ab642

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/rabbitmq-priority-queues-impl

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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

Successfully merging this pull request may close these issues.

1 participant