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

Make AMQP address v2 format user friendly #11618

Merged
merged 1 commit into from
Jul 4, 2024
Merged

Make AMQP address v2 format user friendly #11618

merged 1 commit into from
Jul 4, 2024

Conversation

ansd
Copy link
Member

@ansd ansd commented Jul 4, 2024

This commit is a follow up of #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.

This commit is a follow up of #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.
@ansd ansd added this to the 4.0.0 milestone Jul 4, 2024
ansd added a commit to rabbitmq/rabbitmq-website that referenced this pull request Jul 4, 2024
@ansd ansd marked this pull request as ready for review July 4, 2024 12:31
@ansd ansd merged commit 1952387 into main Jul 4, 2024
289 checks passed
@ansd ansd deleted the amqp-addr-v2 branch July 4, 2024 12:33
ansd added a commit to rabbitmq/rabbitmq-website that referenced this pull request Jul 4, 2024
acogoluegnes added a commit to rabbitmq/rabbitmq-amqp-java-client that referenced this pull request Jul 4, 2024
github-actions bot pushed a commit to rabbitmq/rabbitmq-amqp-java-client that referenced this pull request Jul 4, 2024
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