Skip to main content

Provision from a template

Do not install your stack on a new sandbox for each user. Build it once, then fork it:
  1. Create a sandbox. Install the runtimes, the dependencies and your daemon.
  2. Stop it. Its snapshot is now your template.
  3. Fork the template for each user. This takes a few seconds.
  • The per-fork env replaces the per-sandbox variables that the fork gets from the source. This is the same in the CLI (boat fork <id> -e KEY=V), the API and the SDKs.
  • A fork gets the whole file system of the template.
  • A fork is usable in seconds, at an almost constant cost, whatever the template holds.
  • A fork always uses the latest snapshot of the template.
To update the template:
  1. Resume it.
  2. Change it.
  3. Stop it again.
See Template Sandboxes.

Sizing

The number of concurrent sandboxes follows your daily active users, not your signups. A rough rule from platforms on Boat: On a launch day, the peak is several times higher. Plan against two different limits: Create, fork and resume each count as one start. So pattern 3 uses starts each time a user comes back, not only at signup. See Pricing.