---
title: "The Design & Implementation of Sprites"
description: "Sprites are Linux microVMs that create in a second or two, carry a 100GB durable root filesystem and sleep automatically when idle."
url: "https://swe.quest/articles/the-design-implementation-of-sprites-47c917ae90794ea9"
canonical: "https://fly.io/blog/design-and-implementation/"
source: "Fly.io"
published: "2026-01-14"
difficulty: "medium"
kind: "Case study"
reading_minutes: 10
tags: ["virtualization","storage-systems","system-design","cloud","sandboxing"]
---

# The Design & Implementation of Sprites

A post on [Fly.io](https://swe.quest/sources/flyio.md), published 2026-01-14, 10 min read, Case study. Original: [https://fly.io/blog/design-and-implementation/](https://fly.io/blog/design-and-implementation/)

## Summary

Sprites are Linux microVMs that create in a second or two, carry a 100GB durable root filesystem and sleep automatically when idle. Three design decisions separate them from Fly Machines. Every Sprite starts from one standard container, so workers keep pre-warmed pools. Durable state lives on S3-compatible object storage through a modified JuiceFS with a SQLite metadata backend made durable by Litestream, with NVMe serving only as a read-through chunk cache. Most orchestration runs inside the VM's root namespace, around an inner user container. The tradeoffs: checkpoint/restore becomes a cheap metadata operation and migration becomes trivial, but object-backed disks and aggressive sleeping are a poor fit for hot production databases and latency-sensitive apps, which stay on Fly Machines.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Virtualization](https://swe.quest/tags/virtualization.md) (Infrastructure)
- [Storage systems](https://swe.quest/tags/storage-systems.md) (Infrastructure)
- [System design](https://swe.quest/tags/system-design.md) (Architecture & design)
- [Cloud platforms](https://swe.quest/tags/cloud.md) (Infrastructure)
- [Sandboxing & isolation](https://swe.quest/tags/sandboxing.md) (Security)

## Prerequisites

- microVMs and KVM
- OCI containers ([easy posts on Containers](https://swe.quest/tags/containers.md?difficulty=easy))
- object storage ([easy posts on Storage systems](https://swe.quest/tags/storage-systems.md?difficulty=easy))
- Linux namespaces ([easy posts on Linux](https://swe.quest/tags/linux.md?difficulty=easy))

## Keywords

Sprites, Fly Machines, JuiceFS, Litestream, Corrosion, SQLite, KVM, Fly.io

## Related posts

- [Litestream Writable VFS](https://swe.quest/articles/litestream-writable-vfs-4f950262d6c7f5b0.md): Fly.io · 2026-01-29 · Medium · 7 min read · SQLite, Storage engines, Replication, Storage systems
  Litestream's SQLite VFS now supports an optional write mode and background hydration, built so the Sprites storage stack can serve reads and writes milliseconds after a cold boot without first downloading its JuiceFS block map from object storage.
- [SBD: We Have a Filesystem at Home](https://swe.quest/articles/sbd-we-have-a-filesystem-at-home-3c737c700e710a53.md): Fly.io · 2026-10-22 · Medium · 5 min read · Storage systems, Linux, Testing
  Fly.io replaced the modified JuiceFS stack behind Sprites with the Sprites Block Device (SBD), which exposes an object storage bucket to the Linux kernel as an NBD block device formatted with ext4.
- [Building Agents that Don't Break Themselves](https://swe.quest/articles/building-agents-that-don-t-break-themselves-946af945ee4733ac.md): Fly.io · 2026-06-08 · Medium · 6 min read · AI agents, Sandboxing & isolation, Identity & auth, Virtualization
  Separate where an agent lives from where it executes code: keep the agent loop on a durable host and send every shell command to a disposable Sprite sandbox.
- [Agent Swarms on Sprites](https://swe.quest/articles/agent-swarms-on-sprites-839304324464381c.md): Fly.io · 2026-02-09 · Medium · 3 min read · AI agents, Sandboxing & isolation, AI for coding
  Running each coding agent in a swarm on its own Sprite (a Fly.io sandboxed machine) avoids the shared-filesystem, conflicting-dependency and blast-radius problems of co-located agents.
- [How does Turso Cloud keep your data durable and safe?](https://swe.quest/articles/how-does-turso-cloud-keep-your-data-durable-and-safe-676876baa112a2af.md): Turso · 2025-05-20 · Medium · 4 min read · SQLite, Storage engines, Storage systems, Multi-tenancy, Cloud platforms
  Turso Cloud makes every SQLite database durable on S3 and S3 Express, treating local server disk purely as a cache.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
