-1

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

1 Answers1

1

You can set Always on in IIS.

enter image description here

enter image description here

Reason

The value of Idle Time-out value is 20 minutes.

That's why your webapi will slowly when you access it sometimes.

Idle Timeout is if no action has been asked from your web app, it the process will drop and release everything from memory

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