Portal

Sleep and wake

An app that gets no visitors for a while goes to sleep. It stops using a machine, and that is what makes free hosting possible. When the next visitor arrives, Kaviris wakes it up and hands over the request.

What visitors notice

Usually only a short wait on the first request: about 4 seconds while the app starts. The request is held, not dropped, so the visitor simply gets the page a bit later.

If a wake takes longer than 12 seconds (a big app with a slow start), the visitor sees a short "starting your app" page that reloads by itself.

Every request after that is served at normal speed until the app is idle again.

When does an app sleep?

After 15 minutes without requests. The final number for the free beta is still to be announced (see beta limits). An app falls asleep within about a minute and a half after that.

Keeping an app always on is planned for some plans; it is not available yet.

What keeps running

What does not run while the app sleeps: anything inside the app itself, such as timers or in-memory queues. If your app needs to do work on a schedule, keep that in mind; background workers are coming later.

Write apps that wake well

This page as Markdown