Files
nexus/sreweekly/markdown/434/08-enhancing-cloud-storage-efficiency-with-s3-batch-object-store.md
2026-09-12 17:23:01 +08:00

20 lines
1.8 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Enhancing cloud storage efficiency with s3-batch-object-store
- **期号**: SRE Weekly Issue #434(2024-07-21)
- **作者**: Pablo Matias Gomez — Embrace
- **链接**: https://embrace.io/blog/s3-batch-object-store/
## 简介
Their workload involved writing many small objects but reading very few. By batching many writes into a single object in S3, they saved a ton of money, and now they’re open sourcing their solution.
## 正文
At Embrace, we constantly strive to improve our infrastructure to handle the massive amount of data we process daily. As a mobile app observability platform, one of our more significant challenges was managing the storage and retrieval of large objects, in particular sessions, which is our biggest object. For context, our infrastructure processes tens of millions of user sessions per hour, with individual sessions ranging from 30 KB to 80 KB in size.
Our previous solution involved using Cassandra to store these objects, and fetch them by ID when needed, but this approach led to several issues, prompting us to seek a more efficient method. This quest resulted in the implementation of a new component that allows us to store multiple objects into one single file in S3, reducing costs drastically, and simplifying our infrastructure.
Given that this solution has worked well for our needs and can be used for any number of large cloud object storage requirements, we decided to open source the module and share with the community, so that anyone can use it!
TL;DR: We reduced storage costs by 70% with our new approach. You can head to our [s3-batch-object-store GitHub repository](https://github.com/embrace-io/s3-batch-object-store) to check out the module and try it out. Let us know what you think, as we welcome feedback, issues, and pull requests to continue improving the module.