sustainability-zhaw / .github

SDG Indexing and Dashboard
0 stars 0 forks source link

Broadcast messages to multiple consumers #18

Closed stlozhaw closed 1 year ago

stlozhaw commented 1 year ago

Currently messages sent to the queue will be load balanced between the different consumers and every message will only ever be handled by one consumer. This setup is ok if all consumers are the same and load balancing is the goal. In the case of the data resolvers a message should be broadcasted to all consumers.

Additional research and testing is required.

Possible solution: Using a fanout exchange and multiple queues (one queue per service). https://www.cloudamqp.com/blog/rabbitmq-fanout-exchange-explained.html