Closed
Description
edit by @stephenplusplus
Follow along in the Google issue tracker: https://issuetracker.google.com/issues/70555688
Environment details
- Node.js version: v6.11.5
- @google-cloud/storage version: 1.5.0
Steps to reproduce
The API seems to never reuse connections, which causes Cloud Functions using this API to have poor performance and blow up socket connection and DNS quotas very easily.
In the best practices guide (https://cloud.google.com/functions/docs/bestpractices/networking) they give the NodeJS PubSub as an example, which when declared globally will avoid uncesesary DNS queries and connections.
Could be because the configuration of the requests are hardcoded
Line 510 in 07130a5