Slow Database Connection from Azure Web Application

后端 未结 3 1289
被撕碎了的回忆
被撕碎了的回忆 2021-01-18 07:40

I have developed a Web Application a standard web application to allow users to display and update a set of data from an SQL database.

The Web Application uses a An

3条回答
  •  無奈伤痛
    2021-01-18 08:14

    After some time, this eventually got resolved with some help from Microsoft Azure support.

    The detail that I left out was that my Web App was actually pointing to 2 databases - 1 the Application Azure SQL database, I was having the delay problem with - A 'Data Warehouse' we had on an Azure Virtual Machine

    Because of replication between inhouse database servers and the 'Data Warehouse' the Virtual Machine and Web App were all in a Azure Virtual Network.

    The problem was there can be network problems if a Web App inside a Virtual network wants to talk to Azure SQL Databases (which cannot be within a Virtual Network).

    My solution was to

    • configure an Endpoint on the Data Warehouse Virtual Server,
    • take the Web App out of the Virtual network and make it point to the Virtual Server by means of the Endpoint

    At this point all the delays went away and I could take off the MinPool Size settings (and Timeout which I later discovered did nothing anyway).

提交回复
热议问题