Initial request to droplet extremely slow after longer periods of inactivity
I’m running this Rails app on DO (FreeBSD). Lately I’ve been experiencing extremely slow initial requests after longer periods of inactivity. Subsequent requests are fine.
At first I thought it was my PostgreSQL database or the Rails app itself, but now I doubt that’s the case as I just realized SSH connections made simultaneously with those initial requests are equally slow.
Has anybody ever encountered anything similar?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.