Provision from a template
Do not install your stack on a new sandbox for each user. Build it once, then fork it:- Create a sandbox. Install the runtimes, the dependencies and your daemon.
- Stop it. Its snapshot is now your template.
- Fork the template for each user. This takes a few seconds.
- The per-fork
envreplaces 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.
- Resume it.
- Change it.
- Stop it again.
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.