There is the dbpool module in Webware/Misc (?) that provides simple
database pooling.  There is also DbConnectionPool in the webware sandbox,
which I wrote as a more fully featured alternative for dbpool.

http://cvs.sourceforge.net/viewcvs.py/webware-sandbox/Sandbox/wsmith323/

I have since pulled the basic pooling logic out into a separate module so
that I could build pools of things besides database connections (FTP
connections, FormKit forms, etc.).  However, I haven't yet got around to
refactoring DbConnectionPool to make it inherit from that generic pooling
module.  There are also some major changes that I would like to make to
the pooling logic, such as pulling the expiration logic out into a
separate method that could be called at check-in and check-out time, as
well as by the expiration thread.  I also would like to implement usage
based expiration in addition to the idleness and age expiration that is
already implemented.

Perhaps we could collaborate?

Glenn Hochberg said:
> Is there a preferred or commonly used technique for sharing a pool of
> resources amongst concurrent WebKit requests?
>
> I will be writing a simple pool manager that implements a round-robin
> strategy for allocating the resource in question--just wondering if
> there's some Webware-specific mechanism for coordinating access amongst
> concurrent requests, or if I should just use standard python threading
> constructs.
>
> Thanks!
>
>       -Glenn Hochberg
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
> Use IT products in your business? Tell us what you think of them. Give us
> Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out
> more
> http://productguide.itmanagersjournal.com/guidepromo.tmpl
> _______________________________________________
> Webware-discuss mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/webware-discuss
>
>


-- 
Warren Smith
[EMAIL PROTECTED]


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to