S2 implements segment packing to reduce small PUT costs

s2.dev5 min read

To reduce the high request costs of storing small writes from many quiet data streams on object storage, the S2 platform implements segment packing. By batching small segments from multiple streams into a single larger object before uploading, the service cuts PUT request costs by over 100 times without risking data loss. While this approach introduces space and read amplification trade-offs, subsequent compaction policies can help manage them. Open article →