rabbitmq / rabbitmq-server

Open source RabbitMQ: core server and tier 1 (built-in) plugins
https://www.rabbitmq.com/
Other
12.15k stars 3.91k forks source link

Make AMQP address v2 format user friendly #11618

Closed ansd closed 3 months ago

ansd commented 3 months ago

This commit is a follow up of https://github.com/rabbitmq/rabbitmq-server/pull/11604

This commit changes the AMQP address format v2 from

/e/:exchange/:routing-key
/e/:exchange
/q/:queue

to

/exchanges/:exchange/:routing-key
/exchanges/:exchange
/queues/:queue

Advantages:

  1. more user friendly
  2. matches nicely with the plural forms of HTTP API v1 and HTTP API v2

This plural form is still non-overlapping with AMQP address format v1.

Although it might feel unusual at first to send a message to /queues/q1, if you think about queues just being a namespace or entity type, this address format makes sense.