[Zope-dev] asynch I/O in external method question

Rupert G. Goldie rupert@ekit-inc.com
Mon, 13 Mar 2000 21:55:07 +1100


"Martijn Pieters" wrote:
> From: "Sam Gendler" <sgendler@impossible.com>
> > Is there a way to hook into the asynchronous machinery of Zope/Zserver
> > from within an external method.  I have to process credit cards over a
> > modem, which takes approximately 10 seconds per transaction, during
> > which, whatever thread is executing the external method is blocked,
> > waiting for a response from the credit card server.  I suppose that this
> > means that as soon as I have 7 credit cards being processed
> > simultaneously, my Zope is going to stop responding.   If I had a way to
> > hook into the asynch machinery of zope, that thread could happily be
> > servicing other requests while it waits.  Is this possible?

Make sure you actually need to do this. If you have seven simultaneous 
credit card transactions going on at once you have an awful lot of 
money passing through your system. 

You really, really want to be confident that you understand how your 
credit card processing works because if you make a mistake it will
cost you a lot of money.

--
Rupert G. Goldie, Senior Software Engineer        rgg@ekorp.com