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

RabbitMQ: Support for exchange-to-exchange bindings #625

Closed
theabuitendyk opened this issue Jul 19, 2023 · 2 comments · Fixed by #681
Closed

RabbitMQ: Support for exchange-to-exchange bindings #625

theabuitendyk opened this issue Jul 19, 2023 · 2 comments · Fixed by #681
Labels
enhancement New feature or request good first issue Good for newcomers rabbitmq

Comments

@theabuitendyk
Copy link

Related to #624

I'd like to add an option for exchange-to-exchange bindings to the config. An example use-case is service A publishes messages to a fanout exchange and service B wants to consume the messages using a consistent hash exchange.

Would there be support for adding something like exchangeBindings?

{
  exchanges: [
    {
      name: 'original-fanout-exchange',
      type: 'fanout',
    },
    {
      name: 'consistent-hash-exchange',
      type: 'x-consistent-hash',
    }
  ],
  exchangeBindings: [ // <-- addition
    {
      sourceExchange: 'original-fanout-exchange',
      targetExchange: 'consistent-hash-exchange',
      routingKey: '*'
    }
  ]
}
@theabuitendyk theabuitendyk changed the title Support for exchange-to-exchange bindings RabbitMQ: Support for exchange-to-exchange bindings Jul 19, 2023
@WonderPanda
Copy link
Collaborator

Hey @theabuitendyk, I haven't been actively using RabbitMQ in quite some time so I don't have capacity to tackle this addition for the forseeable future but I'm definitely open to getting it merged in if you wanted to contribute the functionality

@theabuitendyk
Copy link
Author

@WonderPanda Thanks for the reply. I'm happy to contribute! I'll get started on a PR.

@underfisk underfisk added enhancement New feature or request good first issue Good for newcomers rabbitmq labels Aug 4, 2023
ttshivers added a commit to ttshivers/nestjs that referenced this issue Jan 20, 2024
This adds an option to specify exchange bindings in the module config

fix golevelup#625
underfisk added a commit that referenced this issue Jan 21, 2024
This adds an option to specify exchange bindings in the module config

fix #625

Co-authored-by: Rodrigo <monstawoodwow@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers rabbitmq
Projects
None yet
3 participants