shipfeedAI news, curated daily

01:15:07 CET
21 MAY01:15:07shipfeed
pull to refreshlast sync
Just in — 30 new
§ feed · storyline

Optimizing Vercel Sandbox snapshots

Vercel Sandbox cuts snapshot restore times from over 40 seconds to under one second by introducing parallelised S3 downloads and local caching for filesystem state.

Apr 2 · · primary fetch1 sourceupdated Apr 2 ·

When we recently shipped in Vercel Sandbox to let teams capture and restore a sandbox's entire filesystem state, our initial engineering focus was entirely on reliability, making sure the system would never fail to snapshot or lose data.filesystem snapshots Once that foundation was stable, our attention turned to performance. p75 snapshot restores were taking over 40 seconds, and through parallelization and local caching, we brought that under one second. Vercel Sandbox runs on the same infrastructure as our internal builds product, . Each sandbox is an isolated container inside a Firecracker microVM.Hive A snapshot is a compressed copy of the sandbox's disk.

We're working with two different files: When you call , we compress the into a and upload it to S3. When you call with a snapshot, we download the and decompress it back. Without compression, every snapshot operation transfers hundreds of MBs to low GBs over the network, adding seconds to tens of seconds to every restore.sandbox.snapshot().img.vhsSandbox.create().vhs With reliability in place, we turned to the restore path, which was painfully sequential. We'd download the entire file from S3 in a single request, wait for it…

read full article on vercel.com
§ sources1 publication · timeline below
  1. vercel.comOptimizing Vercel Sandbox snapshotsprimary