[plt-scheme] concurrent database connections
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`?
Thanks,
yc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20090325/6da6be2f/attachment.html>