Hello,

We want to use Akka to implement a scenario when messages are fetched from 
a message queue (RabbitMQ) and then processed by a chain of actors. The 
queue is durable and messages must not be lost. So we need to send an 
acknowledgement (BasicAck in RabbitMQ) back to the queue in order to 
finalize the dequeued message. Because of that the very last actor in the 
processing chain needs to do the acknowledgement. This seems to be rather 
common need, and I wonder if there is a known pattern for this. Vaughn 
Vernon in his book writes about using Return Address for such purpose so 
all messages sent along the chain will have the return address (of the MQ 
channel actor) and the correlation identifier that specifies the queue 
message tag. Is this the proper way to do it?

An alternative is to ack the message right after the receival and then use 
persistent actors to provide its guaranteed delivery, but I was adviced 
against such approach because use of AMPQ eliminates the need for actor 
persistance for this particular scenario.

Thanks in advance

Vagif

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to