A sandbox can save its state when a session ends, then resume work from that snapshot later. In its November 9 changelog, Vercel reported that median snapshot creation fell from 4.4 seconds to under 0.4 seconds. The company also reported that median restore time dropped from 500 to 250 milliseconds.

The improvement applies to new snapshots

Vercel says it changed the way its snapshot format indexes data, allowing more reads and writes to run in parallel. On restore, the system can load more of the base image alongside the user data. The timings describe those snapshot operations in Vercel’s measurements. Total time to resume an application can also include work the application does after the sandbox is available.

Persistent sandboxes automatically save a snapshot when a session stops and resume from the latest one. Newly created snapshots use the improved format automatically. Existing snapshots keep their previous format, so a workflow that restores a snapshot created before the update may still use the older path.

To see where the change matters, separate the time to save or restore state from the time until the application is ready to use. Those steps can contribute differently when a workflow stops and resumes frequently.

Sources

Vercel changelog, November 9 · Sandbox snapshots

Stay curious. Choose thoughtfully.More news