Skip to content

Make it possible for clients to declared server-named queues with custom prefixes#16233

Merged
michaelklishin merged 1 commit intomainfrom
mk-configurable-server-named-queue-prefix
Apr 29, 2026
Merged

Make it possible for clients to declared server-named queues with custom prefixes#16233
michaelklishin merged 1 commit intomainfrom
mk-configurable-server-named-queue-prefix

Conversation

@michaelklishin
Copy link
Copy Markdown
Collaborator

@michaelklishin michaelklishin commented Apr 28, 2026

By specifying the prefix in the name_prefix optional queue argument (x-argument).

The default prefix remains amq.gen.

The prefix is meant to allow the user to use app-specific prefixes to easily (or easier) tell which app owns a given server-named queue. So the prefixes are meant to be relatively short, limited to 64 bytes (not UTF codepoints) by design since queue names have a 255 byte limit in AMQP 0-9-1.

I have considered adding a rabbitmq.conf setting for the prefix but goal is to allow applications to pick the prefix, so that little side feature wouldn't make much sense.

@michaelklishin michaelklishin added this to the 4.4.0 milestone Apr 28, 2026
@mergify mergify Bot added the make label Apr 28, 2026
@michaelklishin michaelklishin force-pushed the mk-configurable-server-named-queue-prefix branch from 1b9db8a to 5c3f271 Compare April 28, 2026 07:30
…tom prefixes

By specifying the prefix in the `name_prefix` optional
queue argument.

The default remains `amq.gen`.

The prefix is meant to allow the user to use app-specific
prefixes to eariest tell which app owns a given server-named
queue. So the prefixes are meant to be relatively short,
limited to 64 bytes (not UTF codepoints) by design
since queue names have the 255 byte limit in AMQP 0-9-1.

Conflicts:
	deps/rabbit/Makefile
@michaelklishin michaelklishin force-pushed the mk-configurable-server-named-queue-prefix branch 2 times, most recently from cf0e586 to 64f92a5 Compare April 29, 2026 02:38
@michaelklishin michaelklishin merged commit b1f3d4b into main Apr 29, 2026
190 of 370 checks passed
@michaelklishin michaelklishin deleted the mk-configurable-server-named-queue-prefix branch April 29, 2026 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants