Hi Patrik,

Thanks for your reply!

On Thursday, August 14, 2014 1:48:08 PM UTC+2, Patrik Nordwall wrote:
>
> On Thu, Aug 14, 2014 at 12:23 AM, Arnout Engelen <arn...@bzzt.net 
> <javascript:>> wrote:
>
>> I'm using akka-persistence for a project and so far it's been a fairly 
>> pleasant experience.
>>
>> One thing I noticed was that when using AtLeastOnceDelivery, I must use 
>> the deliveryId's generated by the trait. In some cases it could be nice 
>> if I could provide my own semantically meaningful keys as deliveryId 
>> instead.
>>
>
> We considered it when we designed AtLeastOnceDelivery, but came to the 
> conclusion that it was easiest to understand and most safe to provide the 
> correlation id. That does not mean that sending that id to the recipient is 
> the only way to do it. You could create a mapping between this id and some 
> other id that is passed to the recipient.
>  
>
>> (of course I could try and work around this by keeping track of a mapping 
>> between deliveryId's and my own meaningful id's, but that doesn't seem 
>> right at all :) ).
>>
>
> exactly, why would that not be right? 
>

I'm not sure - it tempted me to write 
https://gist.github.com/raboof/f5d3a500bdfc758dfb9b , which feels like it 
duplicates some of what AtLeastOnceDelivery is already doing (and makes a 
*bit* of a potential mess of retransmissions/UnconfirmedWarning's, though 
it's managable).

Does this seem OK to you, or would you approach it some other way?


Kind regards,

Arnout

-- 
>>>>>>>>>>      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