amqp

Regarding message order guarantees in RabbitMQ/AMQP

守給你的承諾、 提交于 2019-12-10 17:34:02
问题 One of the main characteristics of a message queue service, RabbitMQ included, is preserving message publication order. This is confirmed in the RabbitMQ documentation: [QUOTE 1] Section 4.7 of the AMQP 0-9-1 core specification explains the conditions under which ordering is guaranteed: messages published in one channel, passing through one exchange and one queue and one outgoing channel will be received in the same order that they were sent. RabbitMQ offers stronger guarantees since release

AMQP V1.0 Client for .NET

▼魔方 西西 提交于 2019-12-10 16:33:33
问题 I am looking into using a product such as RabbitMQ or ActiveMQ. I see that there is, to a certain extent, a level of support in these products for AMQP v1.0. However, I am struggling to find a client for using AMQP 1.0 with .NET. So far the only one I have come across is Apache Qpid. However, having to install all its dependencies along with building it all rather than just using something like NuGet to obtain the client library all seems a bit cumbersome and doesn't give me confidence in

How to set the consumer-tag value in spring-amqp

天大地大妈咪最大 提交于 2019-12-10 15:46:07
问题 I am trying to update the consumer-tag to be more informative than the randomly generated string. We have a pattern which we use that includes hostname + identifier + randomized string. This works fine in our other services (ie: NodeJS with ampqlib ) because they provide a mechanism to pass in this value. However, for our Java services, we use spring-amqp and it looks like there is no way to pass in a consumer-tag value. I took a look at BlockingQueueConsumer and it is currently hard-coded to

Spring rabbitlistner stop listening to queue using annotation syntax

家住魔仙堡 提交于 2019-12-10 11:07:20
问题 A colleague and I are working on an application using Spring which needs to get a message from a RabbitMQ queue. The idea is to do this using (the usually excellent) spring annotation system to make the code easy to understand. We have the system working using the @RabbitListner annotation but we want to get a message on demand. The @RabbitListner annotation does not do this, it just receives messages when they are available. The demand is determined by the "readiness" of the client i.e. a

Connecting to Service Bus on Windows Server (1.1) using Java and AMQP 1.0

随声附和 提交于 2019-12-10 10:47:18
问题 The question I am about to ask has been asked here before. An answer has been given by David Ingham reciting this Microsoft Document. A confirmation has been provided by Sentinel that the solution works. Yet, I have the same problem. I follow the Microsoft document to the letter, however, still have the same issue. At the risk of being redundant, the issue is that when using Qpid-JMS Client libraries(versions 0.22 or 0.26) to connect to the Service Bus (1.1) on Windows Server ( NOT Azure )

Is it necessary to use as few queues as possible And solutions for web messaging

余生长醉 提交于 2019-12-10 10:16:32
问题 I read in forum that while implementing any application using AMQP it is necessary to use fewer queues. So would I be completely wrong to assume that if I were cloning twitter I would have a unique and durable queue for each user signing up? It just seems the most natural approach and if not assign a unique queue for each user how would one design something like that. What is the most used approach for web messaging. I see RabbitHUb and Rabbit WebHooks but Webhooks doesn't seem to be a

windows下安装rabbitmq以及php扩展amqp

两盒软妹~` 提交于 2019-12-10 07:25:32
windows下安装rabbitmq以及php扩展amqp 一、扩展下载 PHP扩展下载官网: http://pecl.php.net/ 输入框输入:amqp 链接如下: http://pecl.php.net/package-search.php?pkg_name=amqp 下载对应的版本,看我这篇,不重复写了。 https://blog.csdn.net/qq_36025814/article/details/79206177 下载之后解压,打开如下图所示: 二、扩展安装 (1)、先处理 php_amqp.dll 扩展文件 把扩展放到 ..\php\ext 目录下 在 ..\php\php.ini 文件中引入扩展 ;amqp扩展 extension=php_amqp.dll (2)、再处理 rabbitmq.4.dll 文件 将rabbitmq.4.dll文件放到 ../xampp/php根目录 在 \apache\conf\httpd.conf 修改http.conf 文件 添加 LoadFile "D:/xampp/php/rabbitmq.4.dll" (3)、重启 apache服务 (4)、phpinfo(); 查看扩展是否成功安装。 来源: CSDN 作者: 一包伤心的辣条 链接: https://blog.csdn.net/qq_36025814/article

Retrieve messages from RabbitMQ queue(s)

ⅰ亾dé卋堺 提交于 2019-12-10 03:50:24
问题 I'm looking to implement RabbitMQ into my PHP application, and am using the php-amqp extension. My only question is this, how do I easily query to return the contents of the queue in PHP? php-amqp seems to not enable me to do this. If I am going wrong, please help me out here :) 回答1: James, could you please ask this question on rabbitmq-discuss? Your question touches on what it means to 'query' a queue in order to get messages. In RabbitMQ you consume messages from queues, and perform

RabbitMQ/Celery/Django Memory Leak?

旧时模样 提交于 2019-12-10 01:23:48
问题 I recently took over another part of the project that my company is working on and have discovered what seems to be a memory leak in our RabbitMQ/Celery setup. Our system has 2Gb of memory, with roughly 1.8Gb free at any given time. We have multiple tasks that crunch large amounts of data and add them to our database. When these tasks run, they consume a rather large amount of memory, quickly plummeting our available memory to anywhere between 16Mb and 300Mb. The problem is, after these tasks

How to fetch messages from an Azure Service Bus Queue in “PeekLock” mode using AMQP?

て烟熏妆下的殇ゞ 提交于 2019-12-09 17:58:26
问题 We're trying to consume Azure Service Bus in a Node application. Our requirement is to fetch multiple messages from a queue . Since Azure SDK for Node doesn't support batch retrieval, we decided to use AMQP. While we're able to fetch messages using Peek Messages as described here (https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-amqp-request-response#message-operations). What we are noticing is that as soon as messages are fetched, they are getting removed from the