Inline

On Sun, Jun 6, 2010 at 7:06 PM, Jan Limpens <[email protected]> wrote:

> What happens if a saga delay sends a message and the message is triggered
> after the saga has been completed / deleted?
>

The message will be discarded.

>
> In the starbucks sample, the cashier passes his correlation id to the
> barista.
> How would this be handled for multiple PrepareDrink requests stemming from
> a single cashier saga?
> Imagine the sagas were persisted in the db with the CorrelationId as
> primary key.
> Should every barista saga have it's own CorrelationId and keep a reference
> to it's parent cashier saga?
> I suppose so, but there might be a better way, as this seems to break, what
> correlation seems to be about.
>
Personally, I don't disagree with anything you've said here.

>
> What does HandleCurrentMessageLater() actually do?
>
It sends the message back to itself as a deferred message for Now.
Essentially allowing other messages if any to be processed first. I've never
had a use for this myself.

>
> Are there differences between Orchestrates<> and ConsumerOf<> (are messages
> being treated differently? different order, maybe? or something else?)
> Cashier saga seems to have used Orchestrates<> and was later changed to
> ConsumerOf<> (see region name vs implemented interface)
>

They are not different, other than with only ConsumerOf<> you will not have
the State property set in your consumer class via the ISagaPersister.

>
> Is there (should there be) a way to make a consumer be the first to handle
> a certain message?
>

If order is important I would recommend using two or more different messages
to meet that need.

>
> --
> Jan
>
> --
> You received this message because you are subscribed to the Google Groups
> "Rhino Tools Dev" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<rhino-tools-dev%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/rhino-tools-dev?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Rhino Tools Dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rhino-tools-dev?hl=en.

Reply via email to