I'm developing a worker service and would like to know if there is any way to publish in iis. Or if you can make an api using hosted services not be shut down due to inactivity
Asked
Active
Viewed 564 times
-1
-
Why do you use worker service? Do you want your web application to be always on? – Jason Pan Sep 01 '21 at 09:09
-
Yes. I need it to be always active – Rodrigo De Freitas Oliveira Sep 09 '21 at 13:16
-
Console app or webapp ? – Jason Pan Sep 09 '21 at 13:18
-
is a web api with hosted services – Rodrigo De Freitas Oliveira Sep 09 '21 at 13:51
-
If my reply is helpful, please accept it as answer(click on the mark option beside the reply to toggle it from greyed out to fill in.), see https://meta.stackexchange.com/questions/5234/how-does-accepting-an-answer-work – Jason Pan Sep 10 '21 at 07:03
1 Answers
1
You can set Always on
in IIS.
Reason
The value of Idle Time-out value is 20 minutes.
That's why your webapi will slowly when you access it sometimes.

Jason Pan
- 15,263
- 1
- 14
- 29