[storm] Questions about DeferredStores on twisted-storm branch

Oscar Campos oscar.campos at open-phoenix.com
Tue May 11 14:48:18 BST 2010


Yeah, that makes sense to me, so I already implemented it on this way.

In my application I have twisted web resources loaded as "controllers", each
resource can have a model object (storm object) attached on it that
represents a database table, each model object owns a DeferredStore (or a
Store) that depends on application configuration.

I'm developing a Web Applications Framework using Twisted, Storm, Evoque and
ExtJS so I think I'll ask a lot around here and twisted lists also.

I get some troubles with DeferredResults but I'm busy now implementing
Authentication, and ACL, so I'll ask when I'll back to the code that gave me
the problems.

Btw, do you guys know any decent ACL implementation (not based on file
system like POSIX one) in Python?, I'm developing it from zero so I'm not a
very big fan of reinventing the wheel.

Best Regards.

2010/5/11 James Henstridge <james at jamesh.id.au>

> On Tue, Apr 27, 2010 at 6:03 AM, Oscar Campos
> <oscar.campos at open-phoenix.com> wrote:
> > Ty very much for the quick reply.
> >
> > I see.
> >
> > Btw, is DeferredStore meant to be threadsafe?
>
> The DeferredStore does all its database access in a thread, so calls
> from multiple threads will be serialised.  With that in mind though,
> it doesn't mean that using a single store for unrelated concurrent
> work is a good idea.  Things will be serialised on the connection, so
> if you want parallelism you really need multiple connections (and
> hence multiple DeferredStores).
>
> James.
>



-- 
Oscar Campos Ruiz-Adame -oscar.campos at open-phoenix.com
Consultor - Consultant
Open Phoenix IT Consultoría Tecnológica - IT Consulting
_________________________________________________
Tel. +34 644569088
http://www.open-phoenix.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/storm/attachments/20100511/8355b967/attachment.htm 


More information about the storm mailing list