More 'About Storm'
Tim Stebbing
tjstebbing at gmail.com
Thu Jul 12 07:03:26 BST 2007
> Elliot Murphy wrote:
>
> >> * Distributed database integrity using two-phase commit (if your Python
> >> driver and database backend support it).
> >
> > Can you tell me about how I would use this? Does it work with postgres?
Not sure what framework you plan on using this in, but I gather storm
was written primarily for zope3 applications, which implements its own
two-phase locking explicitly across any databases you touch for a
given transaction, using IDataManagers.
In integrating the two (storm and zope3/zodb) for the project I'm
working on my current plan is to create an IDataManager for storm
which will do-the-right-thing(tm) ie: rollback/commit based on the
success/failure/readiness of other connections, not sure if this helps
you at all.. but if you are dealing with state change across multiple
data stores then doing this sort of thing is a reasonable way to go,
and zope3 contains a working example you could leverage.
-tjs
--
Timothy J Stebbing
More information about the storm
mailing list