Menu

Stop cold starts from stacking up across services: Railway, Fly.io, Cloud Run and Render
📰

Stop cold starts from stacking up across services: Railway, Fly.io, Cloud Run and Render

DEV Community: serverless·Hüseyin Poyraz Küçükarslan·about 9 hours ago
#fvf1PGZx
#devtoserverless#devto#dev#wake#ahead
Long article (913 words) — no AI summary yet.
Reading 0:00
15s threshold

Originally published on gregale.dev . I build Gregale, so read this as a vendor's page. Competitor details come from each vendor's own docs, linked in the post. This post was written with AI assistance.

When several services scale to zero, a request that crosses them pays one cold start per service, one after another. Gregale's service wake-ahead removes the stacking: as soon as one service starts waking, Gregale starts waking the services it usually calls too, so the restores overlap. It is on by default for services in a Gregale project and learns from your real traffic which services to wake. Service wake-ahead is generally available.

The problem: cold starts add up

Take public-api → auth → billing , all parked. Without wake-ahead:

A request arrives; public-api restores.

public-api calls auth , which is parked, so the call waits while auth restores.

auth calls billing , which waits while billing restores.

The user waits for three restores in a row.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.