简体   繁体   English

海带生产者和芹菜消费者

[英]kombu producer and celery consumer

Is it possible for a kombu producer to queue a message on rabbitmq to be processed by celery workers? 海带生产者是否有可能在Rabbitmq上排队一条消息,供芹菜工作者处理? It seems the celery workers do not understand the message put by the kombu producer. 似乎芹菜工人不理解海带生产者发出的信息。

I understand that to communicate with RabbitMQ, you would require any lib that abides by AMQP specification. 我了解要与RabbitMQ进行通信,您需要任何遵守AMQP规范的库。 Kombu is one such lib which can bind to the RabbitMQ exchange, listen and process messages by spawning numerous consumers. Kombu就是这样一种库,它可以通过产生大量使用者来绑定到RabbitMQ交换,侦听和处理消息。 Celery is nothing but an asynchronous task generator which has numerous add-ons like in-memory processing, capacity to write to DB/Redis cache, perform complex operations and so on. Celery只是异步任务生成器,它具有大量附加组件,例如内存中处理,写入DB / Redis缓存的能力,执行复杂的操作等。 Said that now you can use kombu to read and write messages in/from RMQ and use celery workers to process the message. 说,现在您可以使用kombu在RMQ中读写消息,并使用celery worker处理消息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM