On 8/22/08, Andreas Jung <lists@zopyx.com> wrote:


--On 22. August 2008 09:33:21 -0700 David Bear <David.Bear@asu.edu> wrote:

It seems to me that it could be usefull to have a zope method for passing
python pickles to external processes through a unix domain socket. My
thinking was to use this as a means to abstract a data base connection.
Yes, I know there are zsql methods, sqlalchemy and other products to do
this. But my thought was to have a generilzed method for just passing a
pickle to an external process that could do anything with it. Perhaps it
could pass a pickle to a queue that would handle the pickle if the site
need
some high volume handling of data.


Ever heard of XMLRPC? Sorry, your idea sounds like a bit like broken-by-design or like I-have-never-heard--anything-of-higher-protocols.

You are correct, there are higher level protocols. However, since I was only thinking of using python processes, I thought I could simplify the whole design by just passing pickles. No need to parse an xml object, use fast cpickle module.
 

-aj



--
David Bear
College of Public Programs at ASU
602-464-0424