I have moved the existing asp.net web-api from Azure VM (with local IIS and MSSQL installed locally) to the Azure web application and the Azure SQL database (both West European). I notice a sharp increase in processing time between them for the same workload. Tasks that take 10-15 ms in a virtual machine take at least 150 ms in a hosting environment. And internal processing, not including network latency to / from vm or web application. Both with empty databases and with a code base. The same database schema with the same indexing.
The VM was a simple dual-core / 7GB SSD machine. But even when I install my web application on a premium 4-core / 7GB and my database on a premium 250DTU, performance does not increase at all. In fact, this is the same on the basic 2-core web application and the 10DTU database. So the bottleneck should be somewhere else.
How do I know what causes slow processing? The web application and database do not show any performance warnings and do not recommend scaling as well.
source
share