[plt-scheme] concurrent database connections

From: YC (yinso.chen at gmail.com)
Date: Wed Mar 25 17:30:01 EDT 2009

On Wed, Mar 25, 2009 at 1:41 PM, Jay McCarthy <jay.mccarthy at gmail.com>wrote:

> I can't comment on what works best, but I can say that nothing in the
> web-server prevents you from implementing any of those options.
> For different sessions to use the same connections, they must servlet
> module-level definitions.

So when web-server creates two separate threads for the same servlet module,
does the connection get duplicated or shared?  What if the connection is
instantiated in a module that's included by the servlet module?

> For different servlets to use the same connections, there must be a
> single module that handles the connections that is shared via
> make-servlet-namespace.
> Related to the previous question if the answer is duplicated - can
make-servlet-namespace be used with `serve/servlet`?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20090325/6da6be2f/attachment.html>

Posted on the users mailing list.