[storm] RFC: Storm with Pylons and Repoze.tm2
Olaf Conradi
olaf at conradi.org
Tue Jul 29 15:58:06 BST 2008
2008/7/29 James Henstridge <james at jamesh.id.au>:
> If you are creating a ZStorm instance for every request, then you
> could remove all the threading.local() usage.
Well, I was thinking about removing the thread.local stuff because of the SOP.
Because that also does thread.local.
> If you are two independent apps colocated in the same process, you
> have two options:
>
> 1. if they are connecting to the same database, then let them share
> the same store by passing the same store name to get()
>
> 2. if they are connecting to different databases or the same database
> with different settings, use different stores with different names.
>
> In both cases, the database URIs can be configured once at startup
> with global_zstorm.set_default_uri().
True, ok.
So I guess I can drop the SOP alltogether and import global_zstorm in
every module that needs it, which makes the StormMiddleware
unnecessary.
;)
-Olaf
More information about the storm
mailing list