The first web service call every day is slow

When creating this web service and the application that calls it, we noticed that the first call to the web service every day is extremely slow. It will even shut down after a few days. However, every call after that works fine. Can anyone shed some light on why this might be and how we can get rid of this pain?

Thanks in advance!

+3
source share
6 answers

If it is an ASP.NET web service, it could be the CLR, initializing and loading and checking assemblies for the first time. You may consider precompiling

+8
source

, .. , - ( SQL Server, Windows, - ?), , .

+3

- ASP.NET, , -, - , 20 IIS7.

IIS7

- ASP.NET, - , , - .

+2

? db, ( , date?).

+1

Are there many static constructors or customize code in the Global.asax class? Because IIS periodically processes workflows, the startup code may run again.

0
source

Rule for optimization: do not guess. Place profiling to find out what exactly is slow, and then work to make it faster. Everything that has already been published gives excellent tips on where to start looking for slowness.

0
source

Source: https://habr.com/ru/post/1711019/


All Articles