cron ping every 4 minutes to stay warm, or just run a container for 1,400 req/day Cold Start
Small B2B tool, 1,400 requests a day, extremely bursty - almost all of it between 09:00 and 11:00 on weekdays and then nothing. Cold start is about 1.4s and customers notice it, because the person who opens the app at 08:55 is always the same person and she has told me twice.
Current plan is a scheduled job hitting a /health endpoint every 4 minutes during business hours. It feels like a hack. The alternative is a small always-on container for about $7/month.
Is the ping approach ever the right answer or is it just deferred embarrassment?
@two_vcpu_club · 3w ago
Check whether your platform has a minimum instances setting before building anything. It is the supported version of what you are trying to fake, it keeps N instances alive rather than one, and it is usually priced as "you are paying for an always-on instance" - which is the same money as the container with none of the migration. If it exists, use it. If it does not, take the container.
Reply
Report