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

[FEATURE REQUEST] Documentation for more than one routingKey #12

Closed
gustajz opened this issue Dec 20, 2019 · 2 comments
Closed

[FEATURE REQUEST] Documentation for more than one routingKey #12

gustajz opened this issue Dec 20, 2019 · 2 comments

Comments

@gustajz
Copy link

gustajz commented Dec 20, 2019

Hi everyone

It's possible add support to documenting an exchange that contains more than one routingKey for different queues?

Proposal Example:

channels:
  user/signedup:
    bindings:
      amqp:
        is: routingKey
        key:
        - name: key1
          queue:
            name: my-queue-name
            durable: true
            exclusive: true
            autoDelete: false
            vhost: /
        - name: key1
          queue:
            name: my-queue-name
            durable: true
            exclusive: true
            autoDelete: false
            vhost: /
        exchange:
          name: myExchange
          type: topic
          durable: true
          autoDelete: false
          vhost: /

Below is a real world example:

rabbitmq

Thanks!

@gustajz gustajz changed the title [FEATURE REQUEST] Message Ordering Definition [FEATURE REQUEST] Documenting more than one routingKey Dec 20, 2019
@gustajz gustajz changed the title [FEATURE REQUEST] Documenting more than one routingKey [FEATURE REQUEST] Documentation for more than one routingKey Dec 20, 2019
@fmvilas
Copy link
Member

fmvilas commented Dec 24, 2019

If I understood correctly, you can already do this:

channels:
  push/enviar-push-polling/message: # Note that slashes are converted to dots when using AMQP.
    bindings:
      amqp:
        is: routingKey
        queue:
          name: push.enviar-push-polling.queue
          durable: true
          exclusive: true
          autoDelete: false
          vhost: /
        exchange:
          name: myExchange
          type: topic
          durable: true
          autoDelete: false
          vhost: /
  push/enviar-push/message: # Note that slashes are converted to dots when using AMQP.
    bindings:
      amqp:
        is: routingKey
        queue:
          name: push.enviar-push.queue
          durable: true
          exclusive: true
          autoDelete: false
          vhost: /
        exchange:
          name: myExchange
          type: topic
          durable: true
          autoDelete: false
          vhost: /

Let me know if this makes sense to you.

@fmvilas
Copy link
Member

fmvilas commented Mar 3, 2020

I'm closing this issue but feel free to comment if you think it's not solved. Thanks.

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

2 participants