Connection Pooling?

141 views
Skip to first unread message

Jan Monschke

unread,
May 1, 2011, 6:38:25 AM5/1/11
to Mongoose Node.JS ORM
Hi there,

Is there already a solution for connection pooling included into
mongoose?
Or do you all manually open up connections for each request?

/Jan

Guillermo Rauch

unread,
May 1, 2011, 9:56:42 AM5/1/11
to mongoo...@googlegroups.com
You open a single connection which you reuse from all requests.

-- 
Guillermo Rauch
http://devthought.com

Jan Monschke

unread,
May 1, 2011, 5:35:00 PM5/1/11
to Mongoose Node.JS ORM
I assume the connection is event-driven so that requests are not
blocked if the connection is already in use, right? ;)

On 1 Mai, 15:56, Guillermo Rauch <rau...@gmail.com> wrote:
> You open a single connection which you reuse from all requests.
>
> --
> Guillermo Rauchhttp://devthought.comhttp://learnboost.com

Guillermo Rauch

unread,
May 1, 2011, 5:50:56 PM5/1/11
to mongoo...@googlegroups.com
Yup, 99% of the libraries in node are non-blocking.

-- 
Guillermo Rauch
http://devthought.com
Reply all
Reply to author
Forward
0 new messages