[英]Consuming multiple messages from RabbitMQ in java with AKKA actors
I am pretty new to RabbitMQ, I want to to consume multiple messages from RabbitMQ so that work can be done parallely also sending acknowledgement only when any of the actor has finished it's task so as not to loose messages. 我是RabbitMQ的新手,我想使用RabbitMQ的多个消息,以便可以并行完成工作,并且仅在任何参与者完成任务后才发送确认,以免丢失消息。 How should I proceed, I want to use spring support for AKKA.
我要如何使用AKKA的弹簧支架。
Can I use an actor as a consumer or it should be a plain consumer that can consume multiple messages without sending acknowledgement for any of the message or it should be that I have multiple classes/threads working as consumer instantiated to listen a single message at a time than calling actor (but that would be as if it had no actor or parallelism via AKKA model). 我可以将actor用作使用者,还是应该是普通使用者,可以使用多条消息而不发送任何消息的确认,或者应该有多个类/线程作为使用者实例化,以便在某个实例上侦听一条消息。时间比调用演员要多(但通过AKKA模型就好像没有演员或并行性一样)。
I haven't worked with RabbitMQ per se, but I would probably designate one actor as a dispatcher, that would: 我还没有使用RabbitMQ本身,但是我可能会指定一个演员作为调度员,这将:
Some additional things to consider are: 需要考虑的其他一些事项是:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.