amqp

Celery works, but with flower doesn't work

試著忘記壹切 提交于 2019-12-04 07:14:19
I have installed celery and RabitMQ and flower. I am able to browse to the flower port. I have the following simple worker that I can attach to celery and call from a python program: # -*- coding: utf-8 -*- """ Created on Sat Dec 12 16:37:33 2015 @author: idf """ from celery import Celery app = Celery('tasks', broker='amqp://guest@localhost//') @app.task def add(x, y): return x + y This program calls it # -*- coding: utf-8 -*- """ Created on Sat Dec 12 16:40:16 2015 @author: idf """ from tasks import add add.delay(36, 5) I start celery like this: idf@DellInsp:~/Documents/Projects/python3$

Is there a AMQP implementation that has stable C++ Client library [duplicate]

允我心安 提交于 2019-12-04 06:35:11
This question already has answers here : Closed 4 years ago . AMQP C++ implementation (5 answers) Is there a AMQP implementation that has stable C++ Client library Dave Apache Qpid has a stable C++ client library -- see qpid.apache.org . RabbitMQ: https://github.com/alanxz/SimpleAmqpClient https://github.com/akalend/amqpcpp Apache Qpid: https://qpid.apache.org/apis/0.16/cpp/html/ Reviews on Message Brokers (RabbitMQ and Apache Qpid came out on top for their uses) http://wiki.secondlife.com/wiki/Message_Queue_Evaluation_Notes#RabbitMQ See Apache Active MQ Cpp for one example There is a C client

Single Queue, multiple @RabbitListener but different services

前提是你 提交于 2019-12-04 04:16:47
问题 Is it possible to have a single @RabbitListener, e.g: @RabbitListener(queues = STORAGE_REQUEST_QUEUE_NAME) public FindApplicationByIdResponse findApplicationById(FindApplicationByIdRequest request) { return repository.findByUuid(request.getId()) .map(e -> new FindApplicationByIdResponse(conversionService.convert(e, Application.class))) .orElse(new FindApplicationByIdResponse(null)); } @RabbitListener(queues = STORAGE_REQUEST_QUEUE_NAME) public PingResponse ping(PingRequest request) { return

Message Groups in RabbitMQ / AMQP

。_饼干妹妹 提交于 2019-12-04 03:07:50
问题 ActiveMQ / JMS has a built in-mechanism for ensuring that messages that share a common header (namely, the JMSXGroupID header) are always consumed by the same consumer of a queue when using a competing consumers pattern. The consumers of a queue are completely agnostic of the actual header values, as the guarantee of messages with a common header is performed server-side and not consumer-side. For more details on how this works, see http://activemq.apache.org/message-groups.html . Is doing

DDS vs AMQP vs ZeroMQ [closed]

♀尐吖头ヾ 提交于 2019-12-04 02:05:54
I wanted a feedback on whether my evaluations and concerns are correct. I have been reseaching the three, Data Distribution Service, AMQP and ZeroMQ for sometime now for building a data transport layer in a datacenter. All the three look promising, yet i encountered some blocking issues in few. To give a context, my requirements are: Scale upto 500+ physical nodes, 1000+ publishers and subscribers. Support durable delivery of messages to take care of failing subscribers. The aggregated throughput should be north of 1 Million messages / sec Problems with AMQP: The Broker architecture seems to

RabbitMQ AMQP queue design

て烟熏妆下的殇ゞ 提交于 2019-12-03 20:15:13
Below is the desirable design of the queue with: P producer. The application that insert data X exchange. C1-C3 consumer. The applications that read from the queue Queue details: A. Is just like queue log, if there is no client binding then message will be discarded. B. This is a working queue. it will do something if there is criteria match. C. Also a working queue. it will transform the data A is optional, but B. C. will always in queue until some client process connect it. The problem is determine which type of exchange that i should use. is it a fanout, direct or topic ? because I wanted

when does an AMQP/RabbitMQ channel with no connections die?

喜欢而已 提交于 2019-12-03 13:16:10
I have a simple RabbitMQ test program randomly enqueuing messages, and another reading them, all using Spring-AMQP. If the consumer dies (for example killing a process without having a chance to close its connection or channel), any messages that it had not acknowledged appear to remain unacknowledged forever. I have seen a number of references (for example this question ) that say that the channel dies when it has no connections, and that remaining unack'd messages will be redelivered. That's not the behaviour I see - instead I get a growing list of channels marked IDLE and a growing list of

Content-based routing with RabbitMQ and Python

会有一股神秘感。 提交于 2019-12-03 13:15:25
Is it possible with RabbitMQ and Python to do content-based routing? The AMQP standard and RabbitMQ claims to support content-based routing, but are there any libraries for Python which support specifying content-based bindings etc.? The library I am currently using (py-amqplib http://barryp.org/software/py-amqplib/ ) seems to only support topic-based routing with simple pattern-matching (#, *). The answer is "yes", but there's more to it... :) Let's first agree on what content-based routing means. There are two possible meanings. Some people say that it is based on the header portion of a

How to selectively delete messages from an AMQP (RabbitMQ) queue?

久未见 提交于 2019-12-03 12:36:42
问题 I'd like to selectively delete messages from an AMQP queue without even reading them. The scenario is as follows: Sending side wants to expire messages of type X based on a fact that new information of type X arrived. Because it's very probable that the subscriber didn't consume latest message of type X yet, publisher should just delete previous X-type messages and put a newest one into the queue. The whole operation should be transparent to the subscriber - in fact he should use something as

Worker pools and multi-tenant queues with RabbitMQ

倖福魔咒の 提交于 2019-12-03 11:53:41
问题 I work on a web application that is a multi-tenant cloud based application (lots of clients, each with their own separate "environment", but all on shared sets of hardware) and we're introducing the ability for a user to batch up work for later processing. The types of batched work really isn't important, it's just of sufficient quantity that doing it without a work queue isn't really practical. We've selected RabbitMQ as our underlying queue framework. Because we're a multi-tenant app, we