79566618

Date: 2025-04-10 12:21:42
Score: 1.5
Natty:
Report link

I've had this same issue several times and have solved with multi word topics. I'm guessing at many of the details of your specific case but here's an example. Every initiator or sender has a unique name, [sender1, sender2, etc] and each team has a unique name [team1, team2, etc]. Every published message will have the format of "{sender}.{team}" When a message is published for team2 by sender 3 it creates a topic "sender3.team2" and publishes. When you add the bindings for the consumer you would want to add for the 1 team you are interested in and ALL the other senders. Rabbit does not have a way to do NOT on topic parts but you can just list them. In this case, our sender3 for team 2 would add the following bindings["sender1.team2", "sender2.team2"]

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user2945260