We have a node.js server which implements a REST API as a proxy to a central server which has a slightly different, and unfortunately asymmetric REST API.
Our client
How are you getting data from the central server? "Node does not limit connections" is not entirely accurate when making HTTP requests with the http
module. Client requests made in this way use the http.globalAgent
instance of http.Agent
, and each http.Agent
has a setting called maxSockets
which determines how many sockets the agent can have open to any given host; this defaults to 5.
So, if you're using http.request
or http.get
(or a library that relies on those methods) to get data from your central server, you might try changing the value of http.globalAgent.maxSockets
(or modify that setting on whatever instance of http.Agent
you're using).
See: