Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

hot-deployments with Self Host Web Api Services

Context: My company has been developing a WebAPI application to be hosted by IIS and the request latencies for a single static content file are about ~60ms. We investigated benchmarking the same app using WebAPI Self host and the latencies for the same content file were ~15ms, which really blew us away.

From a deployment process, we love IIS as it provides us extreme flexibility in doing hot deployments by copying DLLs directly to our web servers, which doesn't require us to do any sort of drain-stopping.

Question: Is it feasible to do similar hot deployments (just copying over dll's) with self hosted applications?

like image 895
badazzhindu Avatar asked Mar 23 '26 02:03

badazzhindu


1 Answers

Nope, while self-host is executing, the DLLs will be locked so you'll have to stop the self-host first. You can do other tricks like deploying to another folder and then re-routing requests etc. but it's not the same as IIS deployment.

like image 115
Teoman Soygul Avatar answered Mar 25 '26 14:03

Teoman Soygul



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!