[python-win32] Non memory sessions with ASP

Emlyn Jones emlynj at gmail.com
Tue Nov 21 18:03:41 CET 2006


Hello,
I'm currently running a web app using win32 python and ASP on an IIS6 server.
Every now and then the dll I'm using will go into a very busy loop and
tie up ~100% cpu.
This server has two cpus so my plan was to run two worker processes
(one on each cpu) so that one can continue while the other gets busy
(I'm not in a position to modify the dll at the moment and even if I
was it would be nice to know the server is a bit more immune to this
type of thing).
The problem with that plan is that ASP sessions are held in memory so
can't be shared between two worker processes; so I have two questions
if that's ok:

i) I've read that ASP.NET can utilize external storage for it's
sessions, what are my chances of being able to use the functionality
without running the whole app in ASP.NET? (which I can't, because it's
all written in Python).
ii)Does anyone have an example of a custom session handler written in
Python? I'm thinking the bsdb module might be good for this but I'm
worried about concurrency issues.

Thanks,
Emlyn.


More information about the Python-win32 mailing list