amqp

Should I use Celery or Carrot for a Django project?

只愿长相守 提交于 2019-12-02 18:07:11
I'm a little confused as to which one I should use. I think either will work, but is one better or more appropriate than the other? http://github.com/ask/carrot/tree/master http://github.com/ask/celery/tree/master If you need to send/receive messages to/from AMQP message queues, use carrot . If you want to run scheduled tasks on a number of machines, use celery . If you're making soup, use both ;-) May you should see this http://www.slideshare.net/idangazit/an-introduction-to-celery 来源: https://stackoverflow.com/questions/1102254/should-i-use-celery-or-carrot-for-a-django-project

Good Python library for AMQP [closed]

南笙酒味 提交于 2019-12-02 18:04:57
Can you recommend what Python library to use for accessing AMQP (RabbitMQ)? From my research pika seems to be the preferred one. SteveMc Pika is the RabbitMQ recommended library, and py-ampqlib is also mentioned. Depending on what you're using Rabbit for, you might also want to look at Celery (a client library dedicated to distributed queuing). Again, depending on usage, you might also want to look at Apache's qpid which is a full AMPQ-based client-server alternative to RabbitMQ. One thing that attracted us to qpid was that it seemed to have better robustness on server crashes (queues are

Why do CELERY_ROUTES have both a “queue” and a “routing_key”?

三世轮回 提交于 2019-12-02 17:56:37
My understanding of AMQP is that messages only have the following components: The message body The routing key The exchange Queues are attached to exchanges. Messages can't have any knowledge of queues. They just post to an exchange, and then based on the exchange type and routing key, the messages are routed to one or more queues. In Celery, the recommended way of routing tasks is through the CELERY_ROUTES setting. From the docs, CELERY_ROUTES is... A list of routers, or a single router used to route tasks to queues. http://celery.readthedocs.org/en/latest/configuration.html#message-routing

Unable to access ActiveMQ using JMS based code and amqp 1.0

梦想与她 提交于 2019-12-02 17:16:47
问题 I'm trying to connect to an ActiveMQ broker using AMQP 1.0, but I want to use JMS within my application code. I'm interested in using JMS primarily because I want developers to be able to use API's that they are already familiar with. I have ActiveMQ 5.14.0 running on localhost and the following code : public static void main(String[] args) throws JMSException, InterruptedException { Connection connection = null; try { // Producer ConnectionFactory connectionFactory = new

RabbitMQ的安装与使用

橙三吉。 提交于 2019-12-02 17:00:40
1、主流的消息中间件简单介绍哦。   1)、ActiveMQ是Apache出品,最流行的,能力强劲的开源消息总线,并且它一个完全支持jms(java message service)规范的消息中间件。其丰富的api,多种集群构建模式使得他成为业界老牌消息中间件,在中小企业中应用广泛。 如果不是高并发的系统,对于ActiveMQ,是一个不错的选择的,丰富的api,让你开发的很愉快哟。 注意:MQ衡量指标:服务性能,数据存储,集群架构。   2)、kafka是LinkedIn开源的分布式发布/订阅消息系统,目前归属于Apache顶级项目。kafka主要特点是基于Pull的模式来处理消息消费,最求高吞吐量,一开始的目的就是用于日志收集和传输,0.8版本开始支持复制,不支持事务,对消息的重复,丢失,错误没有严格要求,适量产生大量数据的互联网服务的数据收集业务。   3)、RocketMQ是阿里开源的消息中间件,目前也已经孵化为了Apache顶级项目,它是纯java开发,具有高吞吐量、高可用性、适合大规模分布式系统应用的特点。RocketMQ思路起源于kafka,它对消息的可靠传输以及事务性做了优化,目前在阿里集团被广泛用于交易,充值,流计算、消息推送、日志流式处理,binglog分发等场景。   4)、RabbitMQ是使用Erlang语言开发的开源消息队列系统,基于AMQP协议来实现的

windows service bus error: Peer did not create remote endpoint for link, target:,

℡╲_俬逩灬. 提交于 2019-12-02 16:58:56
问题 I am trying to connect to windows service bus using, the example provided on microsoft website, trying to connect the service bus using AMQP from java private String SbConnStrACS = "amqps://" + SbUsername + ":" + encode(SbPassword) + "@" + SbDomain; private String SbQueueName = SbNamespace + "/testq"; I am using below versions of libraries <dependency> <groupId>org.apache.geronimo.specs</groupId> <artifactId>geronimo-jms_1.1_spec</artifactId> <version>1.1.1</version> </dependency> <dependency

Message broker vs. MOM (Message-Oriented Middleware)

泄露秘密 提交于 2019-12-02 16:40:15
I'm a little confused as to what the difference is between a message broker e.g. RabbitMQ and Message-orientated Middleware. I can't find much info apart from what's on Wikipedia. When searching MOM I find info on AMQP which states is a protocol for MOM.. what does this mean? What is MOM then? I also have read that RabbitMQ implements the AMPQ protocol.. so why does that make a RabbitMQ a messsage broker? Are a message broker and MOM the same thing? Hope some can unravel my confusion. thanks An overview - A protocol - A set of rules. AMQP - AMQP is an open internet protocol for reliably

Check RabbitMQ queue size from client

青春壹個敷衍的年華 提交于 2019-12-02 16:09:37
Does anyone know if there's a way to check the number of messages in a RabbitMQ queue from a client application? I'm using the .NET client library. You actually can retrieve this via the client. When perform a queue_declare operation RabbitMQ returns a three tuple containing (<queue name>, <message count>, <consumer count>) . The passive argument to queue_declare allows you to check whether a queue exists without modifying the server state. So you can use queue_declare with the passive option to check queue length. Not sure about .NET, but in Python it looks something like this: name, jobs,

PHP安装amqp拓展(win环境)

旧时模样 提交于 2019-12-02 15:49:51
安装php扩展amqp 先查看自己的php版本 记住版本 至于这个线程安全问题 这里引用了别人的自己看看吧 http://blog.csdn.net/aoyoo111/article/details/19021295 接下来下载dll文件 地址 http://pecl.php.net/package/amqp 下载稳定版的,点击DLL php版本 , X86 和X64 根据自己情况 , NTS 和 TS 就是那个thread safty 的状态 这个大家都会看吧 就不多说了 下载解压 将php_amqp.dll文件放到php目录的ext文件夹下 见下图: 将rabbitmq.4.dll文件放到php根目录 见下图: php.ini里面添加 1 extension=php_amqp.dll    apache 修改http.conf 文件 添加 1 LoadFile "D:/XAMPP/php/rabbitmq.4.dll"    之后重启apache 转载自:https://www.cnblogs.com/88phper/p/8296066.html 来源: https://www.cnblogs.com/guliang/p/11743202.html

amqp vs amqplib - which Node.js amqp client library is better?

北城以北 提交于 2019-12-02 14:29:17
What are the differences between those amqp client libraries? Which one is the most recommended? What are the major differences? I would recommend amqp.node and bramqp over node-amqp. node-amqp has a lot of bugs and is poorly maintained, and it hides the "channel" concept which introduces a lot of problems for rabbitmq servers (because they are never closed). I'm the guy that wrote the bramqp library. So I'm going to admit from the start I may be a bit biased. :P In my opinion, as long as you know the spec, bramqp should work fine. Otherwise, use amqp.node The following are the amqp libraries