[Zope] Can multiple processes access a ZODB3 file?
Chris McDonough
chrism@digicool.com
Sat, 29 Jul 2000 01:56:17 -0400
Sorry about this, mail server troubles.
> -----Original Message-----
> From: Chris McDonough [mailto:chrism@digicool.com]
> Sent: Saturday, July 29, 2000 1:12 AM
> To: 'ross@irisfinancial.com'; zope@zope.org
> Subject: RE: [Zope] Can multiple processes access a ZODB3 file?
>
>
> The ZODB is generally process-locked. It's not possible, to my
> knowledge, to access it from different python processes
> simultaneously.
> To solve this, I'd highly encourage you to use ZEO, despite
> your desire
> not to use it. There's very little to learn with ZEO, and its proven
> very stable over the last few months. It works just like FileStorage,
> you just need to install it, edit a couple files, create a
> custom_zodb.py file in your software home and go. (all hail jim
> fulton!!)
>
> > -----Original Message-----
> > From: Ross Boylan [mailto:rboylan@mindspring.com]
> > Sent: Friday, July 28, 2000 8:55 PM
> > To: zope@zope.org
> > Subject: [Zope] Can multiple processes access a ZODB3 file?
> >
> >
> > If I have Zope running, using ZODB3 on Data.fs, can a separate
> > process also use ZODB3 to access Data.fs? I have my
> suspicions, but
> > I'm not sure.
> >
> > I'm interested in this because I'm in the middle of a balloting
> > period. People email me their ballots. I will need to check them
> > for validity, send out confirmation or error messages, and
> eventually
> > tally the results.
> >
> > I definitely want a persistent store, so ZODB seems good. Also, I
> > eventually would like this to be a Zope product, with
> people able to
> > access the results on the web (and, in the future, vote on
> the web).
> > But getting it Zoped may be too much work in the short run.
> >
> > So, I'll have a Zope server running on my Debian system,
> and another
> > process will be going through the mail. It would be more
> > straightforwad if that other process worked directly with the
> > database, rather than going through Zope via http or xml-rpc or
> > something similar. So I'm wondering if that's possible. I can
> > always take the indirect route if, as I suspect, that's necessary.
> >
> > I'm cribbing from parts of the Poll product as appropriate. The
> > polling machinery is considerably more complex though: a restricted
> > list of voters, various muckings around to get the info out of the
> > email, and preference voting (1 for first choice, 2 for second, etc
> > with an instant run off).
> >
> > I know Zeo is more in the multi-process space, but I don't want to
> > use it for this project because I don't have time to learn it; it's
> > alpha; and it seems like overkill for my problem.
> >
> >
> >
> >
> > _______________________________________________
> > Zope maillist - Zope@zope.org
> > http://lists.zope.org/mailman/listinfo/zope
> > ** No cross posts or HTML encoding! **
> > (Related lists -
> > http://lists.zope.org/mailman/listinfo/zope-announce
> > http://lists.zope.org/mailman/listinfo/zope-dev )
> >
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
>