# S2 cuts S3 write costs by over 100× by packing small segments together

Original title: Coalescing small writes on object storage

> Hacker News story 50679125 · language: en · submitted 2026-11-28
> Web version: https://zeli.app/story/50679125
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 24 · by [infiniteregrets](<https://news.ycombinator.com/user?id=infiniteregrets>) · 💬 0
[original](<https://s2.dev/blog/segment-packing>) · [HN discussion](<https://news.ycombinator.com/item?id=50679125>)

## Summary

S2's serverless streams let apps create one stream per agent session, device, or document, but quiet streams tiering tiny segments every few seconds rack up huge S3 PUT bills — $0.66 per stream per month, or $65,700 at 100,000 streams. Batching small segments from many streams into a single packed object with one PUT drops that to about $0.013 per stream, while ranged GETs and a range-aware cache keep reads cheap.

## Key quote

> A stream that writes a few kilobytes a minute should cost about as much as a few kilobytes, and packing is one of the ways we make that true!

---

## Cite

- Page: https://zeli.app/story/50679125
- Date: 2026-11-28
- Source: s2.dev (https://s2.dev/blog/segment-packing)
- Hacker News: https://news.ycombinator.com/item?id=50679125

## Other languages

- zh: https://zeli.app/zh/story/50679125 · markdown: https://zeli.app/zh/story/50679125.md
- ja: https://zeli.app/ja/story/50679125 · markdown: https://zeli.app/ja/story/50679125.md
- ko: https://zeli.app/ko/story/50679125 · markdown: https://zeli.app/ko/story/50679125.md
- de: https://zeli.app/de/story/50679125 · markdown: https://zeli.app/de/story/50679125.md
- es: https://zeli.app/es/story/50679125 · markdown: https://zeli.app/es/story/50679125.md
- ru: https://zeli.app/ru/story/50679125 · markdown: https://zeli.app/ru/story/50679125.md
