Service doesn't have much logic but still it is taking sometimes 7 or sometimes 19 seconds to return a first request response at daily new morning. After first request, it takes 1 or 2 seconds.
What should I do to improve more performance in it.
And what other best practices can be used for services?
Like snyother ASP.NET Web solution, if it's not used frquently and sits idle, then the program is taken out of scope and must be put back into scope. There is the KeepAlive, and you you can ping the service parodically to keep the services in scope.
If you find the post has answered your issue, then please mark post as 'answered'.
Member
149 Points
237 Posts
Web Api first response is slow
Jul 27, 2019 01:27 PM|mehmoodahmed...|LINK
I have developed a service using web api.
Service doesn't have much logic but still it is taking sometimes 7 or sometimes 19 seconds to return a first request response at daily new morning. After first request, it takes 1 or 2 seconds.
What should I do to improve more performance in it.
And what other best practices can be used for services?
Contributor
4963 Points
4213 Posts
Re: Web Api first response is slow
Jul 27, 2019 02:54 PM|DA924|LINK
Like snyother ASP.NET Web solution, if it's not used frquently and sits idle, then the program is taken out of scope and must be put back into scope. There is the KeepAlive, and you you can ping the service parodically to keep the services in scope.
Member
149 Points
237 Posts
Re: Web Api first response is slow
Jul 27, 2019 06:43 PM|mehmoodahmed...|LINK
thank you
what other practices i can use for increasing the service response time?
Contributor
4963 Points
4213 Posts
Re: Web Api first response is slow
Jul 28, 2019 05:17 PM|DA924|LINK
if you using EF, then it's cold vs warm start.