News for hackers. Stuff that matters.
Re:In S3 simplicity is table stakes by _fat_santa on Friday March 14, 2025 @09:42AM (#43362578)
S3 is up there as one of my favorite tech products ever. Over the years I've used it for all sorts of things but most recently I've been using it to roll my own DB backup system.

One of the things that shocks me about the system is the level of object durability. A few years ago I was taking an AWS certification course and learned that their durability number means that one can expect to loose data about once every 10,000 years. Since then anytime I talk about S3's durability I bring up that example and it always seems to convey the point for a layperson.

And it's "simplicity" is truly elegant. When I first started using S3 I thought of it as a dumb storage location but as I learned more I realized that it had some wild features that they all managed to hide properly so when you start it looks like a simple system but you can gradually get deeper and deeper until your S3 bucket is doing some pretty sophisticated stuff.

Last thing I'll say is, you know your API is good when "S3 compatable API" is a selling point of your competitors.

Re:In S3 simplicity is table stakes by victorp13 on Friday March 14, 2025 @10:03AM (#43362744)
> Last thing I'll say is, you know your API is good when "S3 compatable API" is a selling point of your competitors.

Counter-point: You know that you're the dominant player. See: .psd, .pdf, .xslx. Not particularly good file types, yet widely supported by competitor products.

Re:In S3 simplicity is table stakes by pavlov on Friday March 14, 2025 @01:46PM (#43365098)
Photoshop, PDF and Excel are all products that were truly much better than their competitors at the time of their introduction.

Every file format accumulates cruft over thirty years, especially when you have hundreds of millions of users and you have to expand the product for use cases the original developers never imagined. But that doesn’t mean the success wasn’t justified.

Re:In S3 simplicity is table stakes by jalk on Friday March 14, 2025 @01:54PM (#43365206)
PDF is not a product. I get what you are day but I can’t say that I’ve ever liked Adobe Acrobat
Re:In S3 simplicity is table stakes by pavlov on Friday March 14, 2025 @02:29PM (#43365653)
PDF is a product, just like PostScript was.
Re:In S3 simplicity is table stakes by eternityforest on Friday March 14, 2025 @06:17PM (#43367872)
Most people use libraries to read and write the files, and judge them pretty much entirely by popularity.

A very popular file format pretty much defines the semantics and feature set for that category in everyone's mind, and if you build around those features, then you can probably expect good compatibility.

Nobody thinks about the actual on disk data layout, they think about standardization and semantics.

I rather like PDF, although it doesn't seem to be well suited for 500MB scans of old books and the like, they really seem to bog down on older mobile devices.

Re:In S3 simplicity is table stakes by laluser on Friday March 14, 2025 @10:09AM (#43362796)
It’s designed for that level of durability, but it’s only as good as a single change or correlated set of hardware failures that can quickly change the theoretical durability model. Or even corrupting data is possible too.
Re:In S3 simplicity is table stakes by huntaub on Friday March 14, 2025 @10:39AM (#43363057)
You're totally correct, but these products also need to be specifically designed against these failure cases (i.e. it's more than just MTTR + MTTF == durability). You (of course) can't just run deployments without validating that the durability property is satisfied throughout the change.
Re:In S3 simplicity is table stakes by laluser on Friday March 14, 2025 @11:18AM (#43363471)
Yep! There’s a lot of checksum verification, carefully orchestrated deployments, hardware diversity, erasure code selection, the list goes on and on. I help run a multi-exabyte storage system - I’ve seen a few things.
Re:In S3 simplicity is table stakes by TheNewsIsHere on Saturday March 15, 2025 @01:33PM (#43373951)
This is true. While I prefer non-SaaS solutions generally, S3 is something that’s hard to cost effectively replace. I can setup an AWS account, create an S3 bucket, and have a system that can then persist at least one copy of my data to at least two data centers each within a goal of 1 second. And then layer cross-region replication if I need.

It’s by no means impossible to do that yourself, but it costs a lot more in time and upfront expense.

Re:In S3 simplicity is table stakes by Cthulhu_ on Friday March 14, 2025 @10:51AM (#43363173)
I've used it for server backups too, just a simple webserver. Built a script that takes the webserver files, config files and makes a database dump, packages it all into a .tar.gz file on monday mornings, and uploads it to S3 using a "write only into this bucket" access key. In S3 I had it set up so it sends me an email whenever a new file was added, and that anything older than 3 weeks is put into cold storage.

Of course, I lost that script when the server crashed, the one thing I didn't back up properly.

Re:In S3 simplicity is table stakes by TheNewsIsHere on Saturday March 15, 2025 @01:33PM (#43373958)
If you haven’t already, make sure that versioning is enabled on that bucket!
Re:In S3 simplicity is table stakes by Gys on Friday March 14, 2025 @10:16AM (#43362861)
> their durability number means that one can expect to loose data about once every 10,000 years

What does that mean? If I have 1 million objects, I loose 100 per year?

Re:In S3 simplicity is table stakes by lukevp on Friday March 14, 2025 @10:27AM (#43362957)
What it means is in any given year, you have a 1 in 10,000 chance that a data loss event occurs. It doesn’t stack like that.

If you had light bulbs that lasted 1,000 hrs on average, and you had 10k light bulbs, and turned them all on at once, then they would all last 1,000 hours on average. Some would die earlier and some later, but the top line number does not tell you anything about the distribution, only the average (mean). That’s what MTTF is; the mean time for a given part to where it has a greater likelihood to have failed by then vs not. It doesn’t tell you if the distribution of light bulbs burning out is 10 hrs or 500 hrs wide. it’s the latter, you’ll start seeing bulbs out within 750 hrs, but if the former it’d be 995 hrs before anything burned out.

Re:In S3 simplicity is table stakes by ceejayoz on Friday March 14, 2025 @10:35AM (#43363020)
Amazon claims 99.999999999% durability.

If you have ten million objects, you should lose one every 10k years or so.

Re:In S3 simplicity is table stakes by graemep on Friday March 14, 2025 @10:42AM (#43363086)
How does that compare to competitors and things like distributed file systems?
Re:In S3 simplicity is table stakes by huntaub on Friday March 14, 2025 @10:44AM (#43363106)
I generally see object storage systems advertise 11 9s of availability. You would usually see a commercial distributed file system (obviously stuff like Ceph and Lustre will depend on your specific configuration) advertise less (to trade off performance for durability).
Re:In S3 simplicity is table stakes by gamegoblin on Friday March 14, 2025 @04:58PM (#43367242)
In general if you actually do the erasure coding math, almost all distributed storage systems that use erasure coding will have waaaaay more than 11 9s of theoretical durability

S3's original implementation might have only had 11 9s, and it just doesn't make sense to keep updating this number, beyond a certain point it's just meaningless

Like "we have 20 nines" "oh yeah, well we have 30 nines!"

To give an example of why this is the case, if you go from a 10:20 sharding scheme to a 20:40 sharding scheme, your storage overhead is roughly the same (2x), but you have doubled the number of nines

So it's quite easy to get a ton of theoretical 9s with erasure coding

Re:In S3 simplicity is table stakes by toolslive on Friday March 14, 2025 @10:52AM (#43363181)
it's really not that impressive, but you have to use erasure coding (chop the data D in X parts, use these to generate Y extra pieces, and store all X+Y of them) iso replication (store D n times)
Re:In S3 simplicity is table stakes by 8organicbits on Friday March 14, 2025 @06:27PM (#43367963)
Isn't it just a marketing number? I didn't think durability was part of the S3 SLA, for example.
Re:In S3 simplicity is table stakes by TheNewsIsHere on Saturday March 15, 2025 @01:38PM (#43373985)
Object integrity isn’t part of the S3 SLA. I assume that is mostly because object integrity is something AWS can’t know about per se.

You could unknowingly upload a corrupted file, for example. By the time you discover that, there may not be a clear record of operations on that object. (Yes, you can record S3 data plane events but that’s not the point.)

Only the customer would know if their data is intact, and only the customer can ensure that.

The best S3 (or any storage system) can do is say “this is exactly what was uploaded”.

And you can overwrite files in S3 with the appropriate privileges. S3 will do what you ask if you have the proper credentials.

Otherwise, S3 is designed to be self-healing with erasure encoding and storing copies in at least two data centers per region.

Re:In S3 simplicity is table stakes by catlifeonmars on Saturday March 15, 2025 @03:21PM (#43374599)
S3 supports checksumming, you just need to provide a hash in a header when you upload an object.
Re:In S3 simplicity is table stakes by TheNewsIsHere on Monday March 17, 2025 @04:40PM (#43392516)
Yes but my point stands. If AWS added S3 data integrity to the SLA then it’s now made that commitment contractually. If you add checksum data the checksums would (logically) be required and also be in scope of the SLA. If there was a mismatch between them and the file functioned it would be impossible to sanely adjudicate who is responsible for the discrepancy, or what the nature of that discrepancy might be if no other copies of the file exist.

AWS probably doesn’t want those risks and ambiguities.

Re:In S3 simplicity is table stakes by merb on Friday March 14, 2025 @10:08AM (#43362790)
The durability is not so good when you have a lot of objects
Re:In S3 simplicity is table stakes by achierius on Friday March 14, 2025 @03:27PM (#43366278)
Why not? I don't work with web-apps or otherwise use object stores very often, but naively I would expect that "my objects not disappearing" would be a good thing.
Re:In S3 simplicity is table stakes by oblio on Friday March 14, 2025 @04:54PM (#43367200)
I think their point is that you'd need even higher durability. With millions of objects, even 5+ nines means that you lose objects relatively constantly.
Re:In S3 simplicity is table stakes by cruffle_duffle on Friday March 14, 2025 @10:33AM (#43363006)
> but as I learned more I realized that it had some wild features that they all managed to hide properly so when you start it looks like a simple system but you can gradually get deeper and deeper until your S3 bucket is doing some pretty sophisticated stuff.

Over the years working on countless projects I’ve come to realize that the more “easy” something looks to an end user, the more work it took to make it that way. It takes a lot of work to create and polish something to the state where you’d call it graceful, elegant and beautiful.

There are exceptions for sure, but often times hidden under every delightful interface is an iceberg of complexity. When something “just works” you know there was a hell of a lot of effort that went into making it so.

Re:In S3 simplicity is table stakes by wodenokoto on Friday March 14, 2025 @01:20PM (#43364801)
I’ve never worked with AWS, but have a certification from GCP and currently use Azure.

What do you see as special for S3? Isn’t it just another bucket?

Re:In S3 simplicity is table stakes by angulardragon03 on Friday March 14, 2025 @02:56PM (#43365968)
I did a GCP training a while back, and the anecdote from one of the trainers was that the Cloud Storage team (GCP’s S3-compatible product) hadn’t lost a single byte of data since GCS had existed as a product. Crazy at that scale.
Re:In S3 simplicity is table stakes by hobo_in_library on Friday March 14, 2025 @05:07PM (#43367317)
Eh, they have lost a bit
Re:In S3 simplicity is table stakes by mannyv on Friday March 14, 2025 @09:24PM (#43369084)
Well, google cloud has destroyed entire accounts, but I suppose that's not a storage failure per se.
Re:In S3 simplicity is table stakes by marsovo on Friday March 14, 2025 @10:15PM (#43369333)
Here's the link to that https://news.ycombinator.com/item?id=40304666

Moral of the story: the "technical part" of things is not the end of the story

Alternative moral: The 3-2-1 backup rule of thumb is still alive and well (is your cloud account a single point of failure?)

Related: https://www.infoworld.com/article/2179073/murder-in-the-amaz...