---
title: "Speeding up Deployments with Lazy Image Streaming"
description: "Replit cut cold-boot times for large Deployment container images from 3-4 minutes to under 30 seconds by lazily streaming images through a FUSE filesystem instead of pulling and unpacking every layer up front."
url: "https://swe.quest/articles/speeding-up-deployments-with-lazy-image-streaming-e38be965e3d7f740"
canonical: "https://replit.com/blog/deployments-image-streaming"
source: "Replit"
published: "2023-09-06"
difficulty: "medium"
kind: "Case study"
reading_minutes: 8
tags: ["containers","performance","linux","deployment","storage-systems"]
---

# Speeding up Deployments with Lazy Image Streaming

A post on [Replit](https://swe.quest/sources/replit.md), published 2023-09-06, 8 min read, Case study. Original: [https://replit.com/blog/deployments-image-streaming](https://replit.com/blog/deployments-image-streaming)

## Summary

Replit cut cold-boot times for large Deployment container images from 3-4 minutes to under 30 seconds by lazily streaming images through a FUSE filesystem instead of pulling and unpacking every layer up front. They compared the eStargz snapshotter, which requires converting images to a per-file-compressed seekable format with worse compression ratios, against AWS's SOCI snapshotter. SOCI stores separate zTOC metadata with gzip decompressor checkpoints, so existing OCI images can be range-fetched without modification, and Replit chose it. The main tradeoff is slower runtime filesystem access because every FUSE operation crosses between user space and kernel space several times.

Written by swe.quest, not by the author.

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

## Topics

- [Containers](https://swe.quest/tags/containers.md) (Infrastructure)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [Linux](https://swe.quest/tags/linux.md) (Infrastructure)
- [Deployment](https://swe.quest/tags/deployment.md) (Reliability & operations)
- [Storage systems](https://swe.quest/tags/storage-systems.md) (Infrastructure)

## Prerequisites

- container image layers
- OverlayFS basics
- gzip compression

## Keywords

SOCI snapshotter, eStargz, stargz snapshotter, FUSE, zTOC, OverlayFS, Replit Deployments, Cloud Run

## Related posts

- [Memory snapshots: Checkpoint/restore for sub-second startup](https://swe.quest/articles/memory-snapshots-checkpoint-restore-for-sub-second-startup-543b0ee4c645204a.md): Modal · 2025-01-28 · Medium · 9 min read · Serverless, Containers, Sandboxing & isolation, Performance engineering, Linux
  Modal cuts serverless container cold starts roughly 2.5x by checkpointing a gVisor container's full process tree and filesystem mutations just before it accepts a request, then restoring it instead of re-running Python's syscall-heavy import path (import torch alone makes 26,000 syscalls through OverlayFS and a FUSE lazy-loading server).
- [How we achieved truly serverless GPUs](https://swe.quest/articles/how-we-achieved-truly-serverless-gpus-d82b0620ff18c95f.md): Modal · 2026-05-12 · Medium · 23 min read · Serverless, Inference & serving, Containers, Storage systems, Capacity planning
  Modal cuts GPU inference replica cold starts from roughly 2,000 seconds to about 50 seconds, a 40x speedup, by attacking each stage of spin-up.
- [Building fast filesystems for VMs](https://swe.quest/articles/building-fast-filesystems-for-vms-c974511fa7175ffd.md): Modal · 2026-10-16 · Hard · 9 min read · Storage systems, Virtualization, Performance engineering, Linux, Sandboxing & isolation
  Modal replaced virtio-fs with a custom virtio-blk backend, ImageFS-blk, for its VM Sandboxes.
- [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.
- [Xet is on the Hub](https://swe.quest/articles/xet-is-on-the-hub-31527082840b41cc.md): Hugging Face · 2025-03-18 · Medium · 9 min read · Storage systems, Performance engineering, Load balancing, Scaling
  Hugging Face migrated its first model and dataset repositories from Git LFS to Xet storage, which uses content-defined chunking (~64 KB chunks aggregated into ~64 MB blocks) so that only changed bytes are uploaded.

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)
