RabbitMQ

Can we have multiple subscribers for RabbitMQ queue?

我的梦境 提交于 2021-02-08 09:30:14
问题 I have the following superscription code in my c# console application to drain messages from RabbitMQ queue: consumer = new EventingBasicConsumer(_channel); consumer.Received += (o, e) => { //onMessageReceived() }; consumer.Shutdown += (oo, oe) => { //Handle Subscribe event }; _channel.BasicConsume(QueueName, false ,consumer); I have two instances of this console application running to simulate multiple subscribers situation. I am always reeving messages to te first subscriber and second one

SpringBoot rabbit connection timeout issue

六月ゝ 毕业季﹏ 提交于 2021-02-08 04:26:16
问题 My spring boot application throws connection timeout error, and it is never able to connect. The other interesting problem I see is, it is never picking up the connection timeout property defined in spring app properties. org.springframework.amqp.AmqpTimeoutException: java.util.concurrent.TimeoutException at org.springframework.amqp.rabbit.support.RabbitExceptionTranslator.convertRabbitAccessException(RabbitExceptionTranslator.java:74) ~[spring-rabbit-1.6.7.RELEASE.jar:na] at org

RabbitMQ authentication without password

寵の児 提交于 2021-02-07 21:46:30
问题 Because I don't need to consider security issues in my application, I want to connect to RabbitMQ using the Java client without a password. In the management UI, I set the users password to "no password". Then I tried it this way: ConnectionFactory factory = new ConnectionFactory(); factory.setHost("localhost"); factory.setUsername("myuser"); connection = factory.newConnection(); Alternatively, I tried to assemble the URI by hand: factory.setUri("amqp://myuser@localhost:5672"); ...but in both

How to override MassTransit default exchange and queue topology convention?

佐手、 提交于 2021-02-07 20:54:52
问题 As pointed out [in one of my questions on SO] (Why a simple configuration in MassTransit creates 2 queues and 3 exchanges?), MassTransit for RabbitMQ creates automatically a certain number of queues and exchange for a given simple configuration: Exchanges, all fanouts: ConsoleApp1:Program-YourMessage : Durable VP0003748_dotnet_bus_6n9oyyfzxhyx9ybobdmpj8qeyt : Auto-delete and Durable? test_queue : Durable Queues: VP0003748_dotnet_bus_6n9oyyfzxhyx9ybobdmpj8qeyt : x-expire 60000 test_queue :

How to override MassTransit default exchange and queue topology convention?

只谈情不闲聊 提交于 2021-02-07 20:53:06
问题 As pointed out [in one of my questions on SO] (Why a simple configuration in MassTransit creates 2 queues and 3 exchanges?), MassTransit for RabbitMQ creates automatically a certain number of queues and exchange for a given simple configuration: Exchanges, all fanouts: ConsoleApp1:Program-YourMessage : Durable VP0003748_dotnet_bus_6n9oyyfzxhyx9ybobdmpj8qeyt : Auto-delete and Durable? test_queue : Durable Queues: VP0003748_dotnet_bus_6n9oyyfzxhyx9ybobdmpj8qeyt : x-expire 60000 test_queue :

Defining a Message Passing domain with very many message types

会有一股神秘感。 提交于 2021-02-07 18:10:21
问题 Most F# Message Passing examples I've seen so far are working with 2-4 message types, and are able to utilize pattern matching to direct each message to its proper handler function. For my application, I need hundreds of unique message types due to the different nature of their handling and required parameters. So far, each message type is its own record type with a marker interface attached, because including hundreds of types in a single discriminated union would not be very pretty - and

Defining a Message Passing domain with very many message types

佐手、 提交于 2021-02-07 18:05:59
问题 Most F# Message Passing examples I've seen so far are working with 2-4 message types, and are able to utilize pattern matching to direct each message to its proper handler function. For my application, I need hundreds of unique message types due to the different nature of their handling and required parameters. So far, each message type is its own record type with a marker interface attached, because including hundreds of types in a single discriminated union would not be very pretty - and

Calling celery task hangs for delay and apply_async

早过忘川 提交于 2021-02-07 07:32:33
问题 I have created a celery app with following directory structure (as given in celery site): proj |-- celery.py |-- celery.pyc |-- __init__.py |-- __init__.pyc |-- tasks.py `-- tasks.pyc Following are contents of celery.py from __future__ import absolute_import from celery import Celery app = Celery('proj', broker='amqp://rabbitmquser:<my_passowrd>@localhost:5672/localvhost', #backend='amqp://', include=['proj.tasks']) # Optional configuration, see the application user guide. app.conf.update(

RabbitMQ on Ubuntu 10.04 Server

混江龙づ霸主 提交于 2021-02-07 06:13:50
问题 Trying to run RabbitMQ on VPS with Ubuntu 10.04. Doing everything like usual: added RabbitMQ deb repo updated with apt-get update installed with apt-get install rabbitmq-server On my local machine with Ubuntu 11.10 and another VPS with same 10.04 everything works just fine. But on this one i getting error like this (from /var/log/rabbitmq/startup_log): Activating RabbitMQ plugins ... ******************************************************************************** *****************************

RabbitMQ on Ubuntu 10.04 Server

半腔热情 提交于 2021-02-07 06:12:05
问题 Trying to run RabbitMQ on VPS with Ubuntu 10.04. Doing everything like usual: added RabbitMQ deb repo updated with apt-get update installed with apt-get install rabbitmq-server On my local machine with Ubuntu 11.10 and another VPS with same 10.04 everything works just fine. But on this one i getting error like this (from /var/log/rabbitmq/startup_log): Activating RabbitMQ plugins ... ******************************************************************************** *****************************