I am actually a bit confused at the moment with the Starbucks example.
I can see Barista, Cashier and Customer boot strappers are configured
with InMemorySagaPersister but I don't see public TSaga Get(Guid id)
or public void Save(TSaga saga) being called anywhere in the entire
solution (except in test project). So in the case of Starbucks why is
it not writing to the in memory hash table?

On Aug 8, 3:25 pm, Jeffrey <[email protected]> wrote:
> Hi Corey,
>
> Thanks for giving me the update on saga persister.
>
> I think I can replace existing hash table within InMemorySagaPersister
> class with something else like a database table so that if the node/
> server restarts the saga state can be persisted to somewhere safer
> than in memory. But I am not sure whether I will face concurrency
> violation like when there are multiple nodes processing the same saga
> id should I then introduce db locking when persisting etc? Or am I
> dreaming some scenarios which isn't gonna happen?
>
> Thanks.
>
> Jeffrey
>
> On Aug 7, 11:28 pm, Corey Kaylor <[email protected]> wrote:
>
>
>
>
>
>
>
> > Ayende removed the distributed hashtable due to complexity. The in memory
> > persister is the only one out of the box at the moment. At some point I plan
> > to post a RavenDB saga persister. However, this would require a paid license
> > in most instances and may be problematic for some.
>
> > On Sun, Aug 7, 2011 at 6:32 AM, Jeffrey <[email protected]> wrote:
> > > Hi,
>
> > > I am new to Rhino ESB and I am trying to figure out the saga persister
> > > bit at the moment. When I went through the code base / Starbucks
> > > example I could only find InMemorySagaPersister. However on one of
> > > Ayende's old post (circa 2009) he mentioned two other options which
> > > are OptimisticDistributedHashTableSagaSatePersister &
> > > DistributedHashTableSagaSatePersister which no where to be found in
> > > the current code base. Am I missing something here? How can I persist
> > > saga to some kind of data store (e.g. database)? I also want to
> > > implement a timer which can wake up saga within a given time. Example
> > > would be say I only want to process payment unless the order is 5 days
> > > old.
>
> > >http://ayende.com/blog/4108/rhino-service-bus-dht-saga-sate-persister...
>
> > > Thanks very much!
>
> > > --
> > > 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.

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