Hi Arnout,

On Thu, Aug 14, 2014 at 12:23 AM, Arnout Engelen <[email protected]> wrote:

> Hi,
>
> 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 Val as deliveryId instead. Of course this would also be a great
> opportunity for me to shoot myself in the foot - I'd have to make sure
> myself that those id's are unique, even across recipients - but that's
> solvable and it could make for some more elegant messages. Is there any
> other reason this is not possible/allowed?
>

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?

/Patrik



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



-- 

Patrik Nordwall
Typesafe <http://typesafe.com/> -  Reactive apps on the JVM
Twitter: @patriknw

-- 
>>>>>>>>>>      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 http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to