News for hackers. Stuff that matters.
Re:James Shore: The Best Product Engineering Org in the World by rrr_oh_man on Sunday January 12, 2025 @05:46PM (#42677767)
> Amazon does not use relational databases

Huh?

Re:James Shore: The Best Product Engineering Org in the World by deskglass on Sunday January 12, 2025 @06:01PM (#42677894)
Friends say they typically use Dynamo and that using a relational database requires approval from a vp (because of scaling concerns).
Re:James Shore: The Best Product Engineering Org in the World by hyperliner on Sunday January 12, 2025 @09:32PM (#42679438)
Related: Amazon kicked out Oracle from the company.

Somewhere along the same timeline, the operational recommendation for teams was to not use relational databases.

https://www.theregister.com/2019/10/16/amazon_ditches_oracle...

Re:James Shore: The Best Product Engineering Org in the World by rrr_oh_man on Wednesday January 15, 2025 @12:43PM (#42714303)
Kicking out Oracle might have to do with factors outside the usage of relational databases...
Re:James Shore: The Best Product Engineering Org in the World by vamega on Sunday January 12, 2025 @08:38PM (#42679090)
Relational databases are not the preferred storage mechanism at Amazon. If a team wants to use an OLTP relational database it’s possible that it will be a decision they will need to defend at any kind of design review.

Of course there are relational databases running OLTP workloads, but it’s far away from the norm. There was a program a while ago to shift many RDBMS systems onto something else.

Re:James Shore: The Best Product Engineering Org in the World by emmelaich on Sunday January 12, 2025 @09:37PM (#42679473)
So they do joins in code rather than SQL? Wouldn't that risk hiding scaling problems?
Re:James Shore: The Best Product Engineering Org in the World by grogenaut on Sunday January 12, 2025 @10:11PM (#42679683)
It can but it's usually more obvious what's happening with code and how to fix it. Amazon wants you to think about the scaling issues while building as they don't want to lose the area under the customer curve on the far right.

The theory is that with rdbms you have a magical box that scales vertically until it doesn't. And when it doesn't all you can do is scale back the customers until you fix it with sharding or a re-architecture. Basically you tend to hang yourself with indexes and transactions. Also generally when an RDBMS fails it fails down to like 30% throughput.

Re:James Shore: The Best Product Engineering Org in the World by mickael-kerjean on Sunday January 12, 2025 @10:56PM (#42679932)
I recently finished a contract at a company who has gone full on dynamo with the idea that if we have slow queries and dynamo is good for Amazon, then it's good for us too. I've ran some explain on the queries causing issues and of course those queries didn't leverage indexes like they thought ....
Re:James Shore: The Best Product Engineering Org in the World by redditor98654 on Monday January 13, 2025 @06:16AM (#42682281)
How did you run explain queries on DynamoDB? Or may be you mean something different and I misunderstood you?
Re:James Shore: The Best Product Engineering Org in the World by mickael-kerjean on Thursday January 16, 2025 @09:45PM (#42733556)
I ran explain on the original mysql implementation. The basis of the migration project to dynamo was mysql couldn't cope with our scale but that was bullshit
Re:James Shore: The Best Product Engineering Org in the World by bdavisx on Monday January 13, 2025 @09:07AM (#42683536)
That doesn't make sense, you have to specify the index when you're using Dynamo.
Re:James Shore: The Best Product Engineering Org in the World by scarface_74 on Monday January 13, 2025 @09:21AM (#42683664)
You can do scan operations and if they use PartiQL it hides whether you are using indexes.

I usually have an explicit DENY for dynamodb:Scan for the IAM role used to access the DDB table

Re:James Shore: The Best Product Engineering Org in the World by scarface_74 on Monday January 13, 2025 @12:57AM (#42680495)
Look up design patterns in DynamoDB. If you know your access patterns and you often do with well defined microservices. You don’t need to do joins.
Re:James Shore: The Best Product Engineering Org in the World by yazaddaruvala on Monday January 13, 2025 @02:30AM (#42680980)
Amazon Retail has multiple systems to allow you to basically use SQL across databases (eg Datapath).

I’m not sure about AWS.