amqp

What are some queuing mechanisms for implementing round-robin queues?

和自甴很熟 提交于 2019-12-03 11:33:01
I have multiple task producers that add work to a queue. I also have multiple consumers that feed off that queue. Since these queues are FIFO, they are dequeued in the same order they were added. In my scenario, tasks are added to the queue from HTTP requests. Each task is associated with an account and there is no rate-limiting. Therefore it is possible to have tasks from one account flood the message queue. In order to solve this, I've been looking for a queue implementation which allows me process enqueued tasks from multiple accounts in round-robin fashion for fairness. I've currently

RabbitMQ new connection refused due to SocketException

回眸只為那壹抹淺笑 提交于 2019-12-03 11:27:26
while trying to create a new connection to rabbitmq running on a different server, I got the following error: java.io.IOException at com.rabbitmq.client.impl.AMQChannel.wrap(AMQChannel.java:106) at com.rabbitmq.client.impl.AMQChannel.wrap(AMQChannel.java:102) at com.rabbitmq.client.impl.AMQChannel.exnWrappingRpc(AMQChannel.java:124) at com.rabbitmq.client.impl.AMQConnection.start(AMQConnection.java:406) at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:516) at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:533) Caused by: com.rabbitmq

Spring integration bootstrap - intellij in debug works, packaged jar does not

匿名 (未验证) 提交于 2019-12-03 10:24:21
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to run same project as packaged jar file and as debug config from intellij. Intellij works fine, but in packaged .jar, it seems integration fails to initialize some channels, leading to Dispatcher has no subscribers for channel 'unknown.channel.name'. This is DEBUG output from working case (you can see that Starting beans in phase 1073741823 is after everything is configured): INFO [2018-02-08 11:54:19,450] org.eclipse.jetty.server.handler.ContextHandler: Started i.d.j.MutableServletContextHandler@3fa50a24{/,null,AVAILABLE} INFO

Installing AMQP through PECL

末鹿安然 提交于 2019-12-03 09:36:23
问题 I'm trying to install the RabbitMQ PECL extension but after running sudo pecl install amqp I get the following cryptic error message, which extensive googling hasn't helped resolve. I have these packages installed: librabbitmq - RabbitMQ C client itself) librabbitmq-dev - dev headers etc. and RabbitMQ running successfully on localhost Maybe it could be a mismatch in the version of the C client and what the PECL extension expects, anybody else come across this one? Make output below.... Cheers

What is the “delivery mode” in AMQP?

家住魔仙堡 提交于 2019-12-03 09:18:18
I understand that 2 options are available: "Non-persistent" "Persistent" But what does this actually mean? "Non-persistent" as in : the AMQP fabric will try to deliver the message if there are no consumers, the message will be dropped? "Persistent" as in : AMQP will retry the message until a consumer accepts it?? alexis Messages marked as 'persistent' that are delivered to 'durable' queues will be logged to disk. Durable queues are recovered in the event of a crash, along with any persistent messages they stored prior to the crash. Grzegorz Motyl delivery_mode in AMQP determines if message

How to retract a message in RabbitMQ?

懵懂的女人 提交于 2019-12-03 09:06:29
问题 I've got something like a job queue over RabbitMQ and, upon a request to cancel a job, I'd like to retract the tasks that have not yet started processing (their messages have not been ack'd), which corresponds to retracting these messages from the queues that they've been routed to. I haven't found this functionality in AMQP or in the RabbitMQ API; perhaps I haven't searched well enough? Or will I have to use a workaround (it's not hard, but still)? 回答1: I would solve this scenario by having

Using Spring Integration with RabbitMQ

我只是一个虾纸丫 提交于 2019-12-03 08:42:45
I'm in the process of developing a messaging interface for one of our applications. The application is a service which is designed to accept a "Job", do some processing, and return the result (in the form of a File actually). The idea is to use RabbitMQ as the messaging infrastructure and Spring AMQP to handle protocol specific details. I do not want to have a tight coupling from my code to Spring AMQP, so I would like to use Spring Integration to hide the messaging api. So basically I want this: Message sent to RabbitMQ ====> Spring AMQP ====> Spring Integration ====> MyService ====> reply

correlationId and temporary queues in RPC model - AMQP

家住魔仙堡 提交于 2019-12-03 08:37:26
I was reading RPC-Model in AMQP with RabbitMQ. The tutorial creates a temporary queue and also correlationId . Temporary queues are unique, so why should we need correlationId? I'm a JMS guy, in JMS we do request/response in two ways: create temporary queue for each request/response create one response queue and use correlationId and message selector. can someone explain why do we need both temporary queue and correlationId in AMQP RPC model? It seems AMQP does not have something like message selector. Am I right? Correct, temporary queues are unique to the client making the RPC request. We

What is the “delivery mode” in AMQP?

匿名 (未验证) 提交于 2019-12-03 08:33:39
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I understand that 2 options are available: "Non-persistent" "Persistent" But what does this actually mean? "Non-persistent" as in : the AMQP fabric will try to deliver the message if there are no consumers, the message will be dropped? "Persistent" as in : AMQP will retry the message until a consumer accepts it?? 回答1: @jldupont - what @nos said. Messages marked as 'persistent' that are delivered to 'durable' queues will be logged to disk. Durable queues are recovered in the event of a crash, along with any persistent messages they stored

using rabbitmq in android for chat

旧街凉风 提交于 2019-12-03 07:41:15
We have implemented rabbitmq chat in android. but java client of rabbitmq is power hungry.is rabbitmq good for android chat?. we have used direct exchange individual queue for persons and individual routing keys. what is the best design pattern for one to one chat in rabbitmq. and also ways to reduce battery usage Gabriele I don't think that use RabbitMQ directly for developing a chat is the better solution. There are other solution more light please read this post about MQTT. Another standard solution is use XMPP protocol (for example whatsup uses a custom XMPP). We made some test and we also