Wednesday, 5 April 2017

Azure Functions + Azure SQL + Node.js and connection pooling between requests?

I wonder - is there a way to have an Azure SQL connection pool between Azure Functions (Node.js) requests?

Creating a connection is a significant chunk of the total time my requests are running and I wonder how to improve it.

All the examples on the tedious website http://tediousjs.github.io/tedious/getting-started.html open a new connection, while tedious-connection-pool https://github.com/tediousjs/tedious-connection-pool from what I can see is designed for using a single connection pool for a lifetime of a single request, not between requests.

Any suggestions are appreciated!



via Lech Migdal

No comments:

Post a Comment