On Oct 14, 2010, at 1:23 PM, rtweed wrote:
> Yes I understand that and that's what I'm asking - how to create a
> connection pool. Which modules....and any examples of anyone using
> them with, eg Redis?
>
>
> On 14 Oct, 12:03, Arnout Kazemier <
i...-Iak26U/GZYhWk0Htik3J/w@public.gmane.org> wrote:
>> Threads and multiple sockets are different things. If you want to connect to your database over multiple sockets, i suggest you create a connection pool.
>> There are already a couple of modules that do this for you. Which should make it fairly easy to implement.
>>
>> On Oct 14, 2010, at 1:00 PM, rtweed wrote:
>>
>>
>>
>>> I may just not have found what I'm looking for, but I haven't found
>>> any readily available mechanism in the Node.js ecosystem for
>>> distributing the load on a back-end database/store (eg Redis) across
>>> multiple TCP sockets. For example, I've only ever seen examples on
>>> how to use fictorial's redis-node-client with a single socket. I know
>>> Redis is fast, but there must come a point when it (or some other
>>> database connected in a similar way) just won't be able to keep up
>>> with the queue of requests on the Node.js side via a single socket
>>> connection.
>>
>>> So I'd be interested to know what work is being/has been done on TCP
>>> socket pooling within Node.js to allow database load to be spread
>>> across several threads. Perhaps there's some examples I've missed?
>>
>>> [Of course databases with an HTTP interface aren't a problem since the
>>> HTTP layer can do this work for me - so I'm thinking of simple TCP
>>> socket interfaced databases, Redis being a good example of the genre]
>>
>>> Many thanks!
>>
>>> --
>>> You received this message because you are subscribed to the Google Groups "nodejs" group.
>>> To post to this group, send email to
nodejs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
>>> To unsubscribe from this group, send email to
nodejs+unsubscribe-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.orgm.
>>> For more options, visit this group athttp://
groups.google.com/group/nodejs?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups "nodejs" group.
> To post to this group, send email to
nodejs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
> To unsubscribe from this group, send email to
nodejs+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
> For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en.
>
--
You received this message because you are subscribed to the Google Groups "nodejs" group.
To post to this group, send email to
nodejs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To unsubscribe from this group, send email to
nodejs+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en.