When you run dotnet run
on your MVC6 application it takes long time on first request but then it's obviously works fine. I've tried to find answers in google but it's impossible because all I get is articles about IIS which I am not using at all. In fact I run the code on Ubuntu.
Is it possible to pre-warm the dotnet run
so the first request will be as fast as the second?
A few suggestions:
dotnet run --configuration Release
)--native
flag, then host the results to further benefit from performance optimisation Lastly (and this point is pure speculation), potentially look at running your published web site in a production web server host (e.g. Apache or IIS) rather than from the dotnet cli. This may provide performance enhancements, but would certainly offer "warming" features that aren't present in the CLI (I know IIS has an Always-On option).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With