rabbitmq-exchange

multiple Rabbitmq queues with spring boot

陌路散爱 提交于 2020-02-18 10:25:38
问题 From spring boot tutorial: https://spring.io/guides/gs/messaging-rabbitmq/ They give an example of creating 1 queue and 1 queue only, but, what if I want to be able to create more then 1 queue? how would it be possible? Obviously, I can't just create the same bean twice: @Bean Queue queue() { return new Queue(queueNameAAA, false); } @Bean Queue queue() { return new Queue(queueNameBBB, false); } You can't create the same bean twice, it will make ambiguous. 回答1: Give the bean definition factory

multiple Rabbitmq queues with spring boot

不羁岁月 提交于 2020-02-18 10:22:40
问题 From spring boot tutorial: https://spring.io/guides/gs/messaging-rabbitmq/ They give an example of creating 1 queue and 1 queue only, but, what if I want to be able to create more then 1 queue? how would it be possible? Obviously, I can't just create the same bean twice: @Bean Queue queue() { return new Queue(queueNameAAA, false); } @Bean Queue queue() { return new Queue(queueNameBBB, false); } You can't create the same bean twice, it will make ambiguous. 回答1: Give the bean definition factory

Expired Message Delivery Sequence RabbitMQ

我与影子孤独终老i 提交于 2020-02-02 12:59:19
问题 We are building a solution in which we are publishing message to a time-out queue. After TTL expiry messages are pushed to main queue for re-processing. We are setting up counter value so that messages will be tried for x no. of times for the redelivery. Solution is working fine. But the scenario is when the message on the head position is highest TTL is not expired, other messages of lower expiry will not be re-published (to main queue). Is this understanding correct ? If Yes what is the

Expired Message Delivery Sequence RabbitMQ

亡梦爱人 提交于 2020-02-02 12:59:12
问题 We are building a solution in which we are publishing message to a time-out queue. After TTL expiry messages are pushed to main queue for re-processing. We are setting up counter value so that messages will be tried for x no. of times for the redelivery. Solution is working fine. But the scenario is when the message on the head position is highest TTL is not expired, other messages of lower expiry will not be re-published (to main queue). Is this understanding correct ? If Yes what is the

Publish message using exchange and routing key using MassTransit

雨燕双飞 提交于 2020-01-14 12:46:26
问题 I've been looking at MassTransit for a couple of weeks now and I'm curious about the possibilities. However, I don't seem to be able to get the concepts quite right. Expected behaviour I wanted to publish message to "direct" exchange with routing key which is bind to two different queue for performing other activities. When I attempted the same logic using MassTransit for better scalability. I've found MassTransit creates own exchange based on queue name with fanout type. Classic code to

Publish message using exchange and routing key using MassTransit

喜夏-厌秋 提交于 2020-01-14 12:46:08
问题 I've been looking at MassTransit for a couple of weeks now and I'm curious about the possibilities. However, I don't seem to be able to get the concepts quite right. Expected behaviour I wanted to publish message to "direct" exchange with routing key which is bind to two different queue for performing other activities. When I attempted the same logic using MassTransit for better scalability. I've found MassTransit creates own exchange based on queue name with fanout type. Classic code to

Publish message using exchange and routing key using MassTransit

↘锁芯ラ 提交于 2020-01-14 12:46:05
问题 I've been looking at MassTransit for a couple of weeks now and I'm curious about the possibilities. However, I don't seem to be able to get the concepts quite right. Expected behaviour I wanted to publish message to "direct" exchange with routing key which is bind to two different queue for performing other activities. When I attempted the same logic using MassTransit for better scalability. I've found MassTransit creates own exchange based on queue name with fanout type. Classic code to

Why shouldn't I use rabbitmq topic exchanges for everything?

跟風遠走 提交于 2020-01-13 06:54:18
问题 It seems like the worker pattern, fanout, and filtered topics can all be implemented with topic exchanges. Why would I ever use a direct or fanout exchange instead? We would like to codify common patterns found in our org in a library that abstracts the infinite flexibility of amqp (naming conventions, defaulting to durable, sending common headers, expirations etc.). Should we leverage the different exchange types or implement all patterns with topics; why? (We have consumers/publishers in

How to aggregate RabbitMq messages into single message by correlation ID

寵の児 提交于 2020-01-13 04:42:08
问题 Let's say that I have a pipeline of commands that need to be executed sequentially and that some of the commands contain multiple operations that should be executed in parallel (same correlation id). And let's assume that I need to know when all parallel operations are executed in order to proceed with execution further in the pipeline. Is it possible to achieve this kind of orchestration with RabbitMQ alone by using exchanges and queues without usage of external data sources like database ?

How do I configure rabbitmq queue via puppet

◇◆丶佛笑我妖孽 提交于 2020-01-06 02:00:27
问题 I'm trying to install rabbitmq via puppet. I'm using the puppetlabs-rabbitmq module. It also has section to configure queues and exchanges, which are Native Types . I can't figure out how to use these native types. My code for rabbitmq installation: class rabbitmq-concrete{ $tools = ["vim-enhanced","mc"] package { $tools: ensure => "installed" } $interface = "enp0s8" $address = inline_template("<%= scope.lookupvar('::ipaddress_${interface}') -%>") class { 'rabbitmq': config_cluster => true,