amqp

Azure IoT hub basic receiving example, AMQP error

泪湿孤枕 提交于 2019-12-12 18:23:56
问题 I'm delving into azure Iot hubs and connected technologie for work, using the tutorial found here: https://azure.microsoft.com/nl-nl/documentation/articles/iot-hub-csharp-csharp-getstarted/ When running the receiver example (this section of the article: https://azure.microsoft.com/nl-nl/documentation/articles/iot-hub-csharp-csharp-getstarted/#receive-device-to-cloud-messages) I get an error on the line: var d2cPartitions = eventHubClient.GetRuntimeInformation().PartitionIds; I get this error

Mule ESB connecting to RabbitMQ

心不动则不痛 提交于 2019-12-12 18:18:48
问题 I am new to Mule ESB 3.6(Anypoint Studio Community Edition 5.2). I am working on communication between mule and rabbitmq. rabbitmq support AMQP protocol and mule has connector for AMQP but it work with 3.1 version. Now the question is How to connect if not AMQP from mule? I have tried older version of AMQP connector with new Mule version but its not working as namespace error is coming. Please help. Maven i am not sure how it works as very less user guide is provided. will JMS work in this

RabbitMQ & NodeJS: Following '1 connection per app, 1 channel per thread, 1 consumer per channel' guideline

限于喜欢 提交于 2019-12-12 18:09:20
问题 I'm using NodeJS and amqplib to build a simple job queueing library (somewhat similar to Jackrabbit) to be used in a service that should parse pretty large feeds containing information about a lot of different events. After the information is parsed, it gets distributed to thousands of queues (the queue is the smallest unit where message order has to be respected) and then consumed by my queueing library. The question is: how do I follow the '1 connection per app, 1 channel per thread, 1

Multiple consumer one queue

白昼怎懂夜的黑 提交于 2019-12-12 09:59:23
问题 Is it possible to make multiple consumers to share one single queue in RabbitMQ? I am currently using this php library to work with RabbitMQ, from what I observe, although I have 2 identical instances of a consumer script running, but only one would respond to the message passed... 回答1: If you want both consumers to see all messages, give each consumer its own (probably private) queue and bind them both to the same exchange. 来源: https://stackoverflow.com/questions/1831705/multiple-consumer

What is the “delivery mode” in AMQP?

会有一股神秘感。 提交于 2019-12-12 07:38:57
问题 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: 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

AMQP connection reset by peer, but celery connected

蓝咒 提交于 2019-12-12 05:37:43
问题 I have a flask app using Celery with RabbitMQ as the broker. I've followed the instructions in this answer to get started. I have two machines. Machine A, where RabbitMQ runs, sends tasks to be consumed by celery on Machine B. My Broker Url and Backend Result Url are the same: amqp://remote:***@12.345.678.999:5672/remote_host . Both machines have copies of the flask app on them. RabbitMQ has been configured so that user remote has all permissions granted ".* .* .*". All the communication

Unable to get message in priority sequence Spring camel rabbitmq

落花浮王杯 提交于 2019-12-12 03:54:02
问题 I am a beginner in using spring camel rabbitmq . I am able to set message priority in message header by setting it in exchange out headers on the producer side, like this : exchange.getOut().setHeader("rabbitmq.PRIORITY", 1); BUT while consuming the messages they dont come in there order of priority. HELP !! I can see in web interface of rabbitmq that priority header in appropriately set 回答1: Please carefully read the "Interaction with consumers" section of this document. You should also

How to add Promise to event handler in javascript

时光毁灭记忆、已成空白 提交于 2019-12-12 03:07:49
问题 Now I want to wrap amqp with Promise Q, here are the codes Sender.prototype.createConnection_ = function () { var deferred = Q.defer(); this.con_ = amqp.createConnection( this.connectOpt_, this.implementOpt_ ); deferred.resolve( this.con_ ); return deferred.promise; } Sender.prototype.connectionReady_ = function() { var deferred = Q.defer(), self = this; self.con_.on('ready', function() { console.log('connection is ok now'); deferred.resolve(self.con_); }); return deferred.promise; } Sender

Null response for spring-amqp Request/Reply Messaging

半腔热情 提交于 2019-12-12 01:42:39
问题 I'm following the instructions for the Stock Trading sample, which outlines how to use request/reply messaging in spring-amqp : http://static.springsource.org/spring-amqp/docs/1.2.x/reference/html/sample-apps.html#d4e742 I've tweaked the sample instructions to create a client which should wait for the reply by using convertSendAndReceive instead of convertAndSend : https://gist.github.com/pulkitsinghal/5774487 Now even though the reply is put on the responseQueue and I've updated the timeout

AMQP acknowledgement mule

送分小仙女□ 提交于 2019-12-11 19:36:12
问题 I'm having issues with the AMQP Connector in Mule ESB. When I send an request-response message inside my flow, initiated by an AMQP Inbound Endpoint. When I acknowledge the message I get an error about the inbound property 'delivery-key' missing. I've tried setting and outbound property and sending that through a VM endpoint to another flow where it became and inbound property. However this didn't work. I am using RabbitMQ. 回答1: AMQP message acknowledgement requires both a channel and a