Azure functions runs faster on Cloud and slow on local device.

poojan.naik 0 Reputation points
2023-05-24T06:18:56.4833333+00:00

I have been Azure functions and developing apps using Python for more than a month. Earlier I did not face any issues while developing. The following is my system specs:

RAM-> 16 GB

Processor -> i5 8th Gen

Storage-> 256 GB SSD

OS-> Linux

After one fine weekend, when I started my Azure functions on the local dev server, the API took 4 mins for request processing while the actual code only ran for 3 seconds. The same API was working under the runtime of 2ms on the cloud. I updated the func tools version and rebooted my device. I also shut down 3 windows of Chrome and started the Azure function. The issue still persists. I have checked the RAM usage and there is still more than 5 GB of free RAM. I have been unable to test my code locally.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,911 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.