I've noticed that after a period of time my ASP.NET Core Web API services seem to go through the same initialisation process you get when you launch them fresh, i.e. the initial request is slow, but subsequent requests are fast.
Is there a common technique for keeping controllers warm so this doesn't happen? For reference I'm not using IIS (as far as I'm aware), these services run in Docker using Microsoft's official .NET Core docker images (not Alpine based).
I should also point out that controllers within these services are pre-warmed on launch via a /ready
endpoint that's invoked by Kubernetes as a readiness check. The issue is that this doesn't seem to stick particularly long.