Kestrel Web Server for Asp.Net Core - Overwrite / Reload after a while

Simple Nobe question :-)

I'm about to go into production with a small .NET host for the main application hosted in a blob on digitalocean. I've always hosted websites using IIS, but I'd like to go to Linux distributions and use nginx as a reverse proxy.

My question is what the title says :-) Does the kestrel need to recycle the "application pool" like IIS does? If not, does this mean that the application is being downloaded from Kestrel online, before it is closed?

Regards Jens

+3


source to share


1 answer


Based on the bits of information here and there from looking at all the http://live.asp.net community gatherings, I wouldn't do that, Kestrel don't dispose of itself the way IIS does.

The reason for this is that Kestrel currently has no way to restart itself if it stops. This is one of the many reasons why it is important to put it behind some kind of reverse proxy like IIS or nginx. This kind of process lifecycle management functionality should currently come from a software layer outside of Kestrel. If Kestrel dies due to a software bug or some other reason and there is no reverse proxy or other process to restart it, it will not restart on its own and the website will not remain.



For more information, this article talks about publishing in a Linux production environment and provides a sample nginx system service file from Restart=always

https://docs.microsoft.com/en-us/aspnet/core/publishing/linuxproduction

+3


source







All Articles