Hi Tal,

Have you tried using a custom router:
http://doc.akka.io/docs/akka/2.3.8/scala/routing.html#Custom_Router ?

-Endre

On Tue, Dec 23, 2014 at 1:00 PM, Tal Pressman <kir...@gmail.com> wrote:

> Hi,
>
> I have a system that receives messages and has to route them (based on
> some "complicated" logic) to a number of destinations reliably (with
> at-least-once semantics). It seems that the most natural way to achieve the
> routing part is to create a Router with custom RoutingLogic. The
> reliability part is easy to achieve using (akka-persistence 's)
> AtLeastOnceDelivery. However, I don't see how to integrate the two
> approaches together, and would love to hear if anyone has any ideas.
>
> So a little more details on what I'm looking for. I need an actor that,
> when it receives a message:
>
>    - Applies some logic to the message to determine its destinations.
>    - Sends the message to those destinations and await acknowledgements,
>    retrying failed deliveries.
>    - After collecting all the acknowledgements, acknowledge the original
>    message.
>
> Obviously, I can create an AtLeastOnceDelivery actor and implement the
> routing and ack management myself, but I was wondering if there was a
> cleaner approach here.
>
> Thanks,
> Tal
>
>  --
> >>>>>>>>>> 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 akka-user+unsubscr...@googlegroups.com.
> To post to this group, send email to akka-user@googlegroups.com.
> Visit this group at http://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Akka Team
Typesafe - The software stack for applications that scale
Blog: letitcrash.com
Twitter: @akkateam

-- 
>>>>>>>>>>      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 akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to