Most active commenters
  • JustExAWS(4)
  • tracker1(3)

←back to thread

276 points Fendy | 26 comments | | HN request time: 0.636s | source | bottom
Show context
simonw ◴[] No.45170289[source]
This is a good article and seems well balanced despite being written by someone with a product that directly competes with Amazon S3. I particularly appreciated their attempt to reverse-engineer how S3 Vectors work, including this detail:

> Filtering looks to be applied after coarse retrieval. That keeps the index unified and simple, but it struggles with complex conditions. In our tests, when we deleted 50% of data, TopK queries requesting 20 results returned only 15—classic signs of a post-filter pipeline.

Things like this are why I'd much prefer if Amazon provided detailed documentation of how their stuff works, rather than leaving it to the development community to poke around and derive those details independently.

replies(5): >>45171116 #>>45171985 #>>45172432 #>>45177278 #>>45180236 #
libraryofbabel ◴[] No.45172432[source]
> Things like this are why I'd much prefer if Amazon provided detailed documentation of how their stuff works, rather than leaving it to the development community to poke around and derive those details independently.

Absolutely this. So much engineering time has been wasted on reverse-engineering internal details of things in AWS that could be easily documented. I once spent a couple days empirically determining how exactly cross-AZ least-outstanding-requests load balancing worked with AWS's ALB because the docs didn't tell me. Reverse-engineering can be fun (or at least I kinda enjoy it) but it's not a good use of our time and is one of those shadow costs of using the Cloud.

It's not like there's some secret sauce here in most of these implementation details (there aren't that many ways to design a load balancer). If there was, I'd understand not telling us. This is probably less an Apple-style culture of secrecy and more laziness and a belief that important details have been abstracted away from us users because "The Cloud" when in fact, these details do really matter for performance and other design decisions we have to make.

replies(8): >>45172495 #>>45172524 #>>45172841 #>>45175537 #>>45177495 #>>45178724 #>>45184264 #>>45185668 #
1. TheSoftwareGuy ◴[] No.45172524[source]
>It's not like there's some secret sauce here in most of these implementation details. If there was, I'd understand not telling us. This is probably less an Apple-style culture of secrecy and more laziness and a belief that important details have been abstracted away from us users because "The Cloud" when in fact, these details do really matter for performance and other design decisions we have to make.

Having worked inside AWS I can tell you one big reason is the attitude/fear that anything we put in out public docs may end up getting relied on by customers. If customers rely on the implementation to work in a specific way, then changing that detail requires a LOT more work to prevent breaking customer's workloads. If it is even possible at that point.

replies(6): >>45172717 #>>45174090 #>>45175464 #>>45177301 #>>45178450 #>>45179528 #
2. libraryofbabel ◴[] No.45172717[source]
And yet "Hyrum's Law" famously says people will come to rely on features of your system anyway, even if they are undocumented. So I'm not convinced this is really customer-centric, it's more AWS being able to say: hey sorry this change broke things for you, but you were relying on an internal detail. I do think there is a better option here where there are important details that are published but with a "this is subject to change at any time" warning slapped on them. Otherwise, like OP says, customers just have to figure it all out on their own.
replies(2): >>45172945 #>>45221877 #
3. lazide ◴[] No.45172945[source]
Sure, but the court isn’t going to consider hyrum’s law in a tort claim, but might consider AWS documentation - even with a disclaimer - with more weight.

Rely on undocumented behavior at your own risk.

replies(1): >>45174711 #
4. wubrr ◴[] No.45174090[source]
Right now, it is basically impossible to reliably build full applications with things like DynamoDB (among other AWS products), without relying on internal behaviour which isn't explicitly documented.
replies(3): >>45174812 #>>45176329 #>>45177577 #
5. vlovich123 ◴[] No.45174711{3}[source]
Has Amazon ever been taken to court for things like this? I really don't think this is a legal concern.
replies(2): >>45175180 #>>45175403 #
6. JustExAWS ◴[] No.45174812[source]
I am also a former AWS employee. What non public information did you need for DDB?
replies(2): >>45175552 #>>45177723 #
7. lazide ◴[] No.45175180{4}[source]
Amazon is involved in so many lawsuits right now, I honestly can’t tell. I did some google searches and gave up after 5+ pages.
8. teaearlgraycold ◴[] No.45175403{4}[source]
I don't buy the legal angle. But if I was an overworked Amazon SWE I'd also like to avoid the work of documentation and a proper migration the next time implementation is changed.
9. simonw ◴[] No.45175464[source]
Thanks for this, that's a really insightful comment.
10. tracker1 ◴[] No.45175552{3}[source]
Try ingesting the a complete WHOIS dump into DDB sometime. This was before autoscaling worked at all when I tried... but it absolutely wasn't anything one can consider fun.

In the end, after multiple implementations, finally had to use a Java Spring app on a server with a LOT of ram just to buffer the CSV reads without blowing up on the pushback from DDB. I think the company spent over $20k in the couple months on different efforts in a couple different languages (C#/.Net, Node.js, Java) across a couple different routes (multiple queues, lambda, etc) just to get the initial data ingestion working a first time.

The Node.js implementation was fastest, but would always blow up a few days in without the ability to catch with a debugger attached. The queues and lambda experiments had throttling issues similar to the DynamoDB ingestion itself, even with the knobs turned all the way up. I don't recall what the issue with the .Net implementation was at the time, but it blew up differently.

I don't recall all the details, and tbh I shouldn't care, but it would have been nice if there was some extra guidance of trying to take in a few gb of csv into DynamoDB at the time. To this day, I still hate ETL work.

replies(2): >>45175727 #>>45179358 #
11. JustExAWS ◴[] No.45175727{4}[source]
https://docs.aws.amazon.com/amazondynamodb/latest/developerg...
replies(1): >>45175797 #
12. tracker1 ◴[] No.45175797{5}[source]
Cool... though that would make it difficult to get the hundred or so CSVs into a single table, since it isn't supported I guess stitching them before processing would be easy enough... also, no idea when that feature became available.
replies(1): >>45176199 #
13. JustExAWS ◴[] No.45176199{6}[source]
It’s never been a good idea to batch ingest a lot of little single files using any ETL process on AWS, whether it be DDB, Aurora MySQL/Postgres using “load data from S3…”, Redshift batch import from S3, or just using Athena (yeah I’ve done all of them).
replies(1): >>45199618 #
14. cbsmith ◴[] No.45176329[source]
I've built several DynamoDB apps, and while you might have some expectations of internal behaviour, you can build apps that are pretty resilient to change of the internal behaviour but rely heavily on the documented behaviour. I actually find the extent of the opacity a helpful guide on the limitations of the service.
replies(1): >>45177912 #
15. scarface_74 ◴[] No.45177301[source]
You have been quoted Simon Willison on his blog - his blog is popular on HN.

https://simonwillison.net/2025/Sep/8/thesoftwareguy/#atom-ev...

16. mannyv ◴[] No.45177577[source]
Totally incorrect for Dynamo.

It was probably correct for Cognito 1.0.

17. cyberax ◴[] No.45177723{3}[source]
A tool to look at hot partitions, for one thing.
replies(1): >>45182438 #
18. catlifeonmars ◴[] No.45177912{3}[source]
Agree. TTL 48h SLA comes to mind.
19. UltraSane ◴[] No.45178450[source]
Just add an option to re-enable spacebar heating.
20. everfrustrated ◴[] No.45179358{4}[source]
Why would you expect an OLTP db like DDB to work for ETL? You'd have the same problems if you used Postgres.

It's not like AWS is short on ETL technologies to use...

replies(1): >>45183945 #
21. thiagowfx ◴[] No.45179528[source]
https://www.hyrumslaw.com/
22. JustExAWS ◴[] No.45182438{4}[source]
It should handle that automatically

https://aws.amazon.com/blogs/database/part-2-scaling-dynamod...

replies(1): >>45186727 #
23. scarface_74 ◴[] No.45183945{5}[source]
Even in an OlTP db, there is often a need to bulk import and export data. AWS has methods in most supported data stores - ElasticSearch, DDB, MySQL, Aurora, Redshift, etc to bulk insert from S3.
24. cyberax ◴[] No.45186727{5}[source]
The keyword here is "should" :) Back then DynamoDB also had a problem with scaling the data can be easily split into partitions, but it's never merged back into fewer partitions.

So if you scaled up and then down, you might have ended with a lot of partitions that got only a few IOPS quota each. It's better now with burst IOPS, but it still is a problem sometimes.

25. tracker1 ◴[] No.45199618{7}[source]
These weren't "little" single files... just separated by tld iirc.
26. TheSoftwareGuy ◴[] No.45221877[source]
You're right, people absolutely do rely on internal behavior intentionally and sometimes even unintentionally. And we tried our hardest not to break any of those customers either. but the point is that putting something in the docs is seen as a promise that you can rely on it. And going back on a promise is the exact opposite of the "Earns Trust" leadership principal that everyone is evaluated against.