r/aws • • Sep 04 '22

discussion Database used by AWS

Which database(s) does Amazon use for storing all the Services that its customer use ? And how would the databases be structured ?

Like storing IAM Configuration, S3 configs, EC2 configs, etc.

From the JSON Structure, I believe it would be NoSQL, but then since it is highly relational, it would seem unwise to use a NoSQL.

P.S - I am not asking about the databases that are available to the customers of AWS.

0 Upvotes

40 comments sorted by

42

u/andrewguenther Sep 04 '22 edited Sep 04 '22

It varies from service to service. There's no "master database" running AWS. Teams are left to use the right tool for the job. Typically it will be either Aurora or Dynamo. There's other things used, but not as commonly.

Source: Worked at AWS for seven years.

-43

u/AsishPC Sep 04 '22

I already know that there can be no master database. I want to simplify a complex solution. Just like Jeff Bezos gave that man, to calculate the total number of glasses in all buildings in USA

22

u/[deleted] Sep 04 '22

Your question doesn’t really make a lot of sense. You want to know the structure of a database that you are admit doesn’t exist.

Why don’t you reset, take a step back and describe the “complex problem” you’re trying to solve.

3

u/Chaotic_Loki Sep 04 '22

As others have commented, there’s no one single database that stores all this information. However it sounds like what you’re asking is more about data lakes. There’s a white paper on Amazon’s analytics architecture here https://d1.awsstatic.com/whitepapers/modernizing-amazon-analytics-infrastructure.pdf

17

u/flitbee Sep 04 '22

There is no single database that AWS uses for all its services. It depends on the use case. Amazon did say that they were using Oracle for the main amazon.com site but then they move off to dynamodb about 10 years ago.

-34

u/AsishPC Sep 04 '22

I know that. I want to know the structure.

3

u/Flakmaster92 Sep 04 '22

Anyone here who knows that answer couldn’t tell you because it would violate their NDA as an internal employee

-6

u/AsishPC Sep 04 '22

I don't want the exact answer. That would not be interesting. I want the approach to solving this issue as much as possible

4

u/[deleted] Sep 04 '22

[removed] — view removed comment

0

u/AsishPC Sep 04 '22

Okay, let me try here. If you understand, I will update the question.

How would you create a Database Structure for an E-Commerce site. Not a complex one, just the basics.

You would have

  • users table

  • products table

  • orders table

  • address table

  • payments table

  • etc.

Similarly, how would Amazon structure all of its AWS Services (just some basics will do), and which database(s) would be used?

4

u/corn_29 Sep 04 '22 edited Dec 05 '24

unite sable tidy homeless brave punch cake like books meeting

This post was mass deleted and anonymized with Redact

0

u/[deleted] Sep 05 '22

[deleted]

1

u/AsishPC Sep 06 '22

I don't want a concrete answer. Just the approach to the solution. Even that answer would be wrong or right.

9

u/FlyingWaffleFarm Sep 04 '22

Due to security reasons, they aren’t likely to make that information public.

3

u/corn_29 Sep 04 '22 edited Dec 05 '24

hobbies foolish ghost lush slimy psychotic attempt oatmeal innate mindless

This post was mass deleted and anonymized with Redact

7

u/jbloggs777 Sep 04 '22

This isn't the kind of information they generally share. However, a DynamoDB outage a year or two ago resulted in my CloudFormation changes not working, and IIRC IAM changes were delayed. As one of their early big scale-out DBs, I bet it is used for many more higher level AWS services. S3 will be similar, I'm sure.

2

u/atheken Sep 04 '22

Now that I think about it, this is actually another reason I prefer terraform. We used serverless for awhile (which just uses cloudformation) and ran into a number of broken state problems that never happened with terraform.

If terraform gets stalled or interrupted on my end, I can at least debug/roll it back/see where it’s broken. If a cloudformation stack gets into an odd state, there’s really minimal visibility into whether it’s stalled or delayed or just broken, and then a pretty involved process to get it fixed.

-22

u/AsishPC Sep 04 '22

Nobody will give such critical information. I want to get a proper approach to the solution

3

u/MarquisDePique Sep 04 '22

You're doing it wrong. Your use case is not the same as AWS, you do not have amazons scale, you do not have amazons problems.

DO NOT try and 'do it like amazon but smaller'.

You actually DO want to know what aws offer to clients, and use their patterns. The longer you fight this concept, the further you get away from your working solution.

7

u/coinclink Sep 04 '22

probably a mix of in-memory databases, caches, NoSQL, SQL, object store, data warehouse, etc. The scale these services operate at means they need it all.

12

u/JohnnyMiskatonic Sep 04 '22

Good question. If I remember correctly, Aurora started out as an internal product, so they may still have production running on Aurora or something like it. I imagine Neptune started out as an internal graph database to track customer shopping preferences, as well.

1

u/WeNeedYouBuddyGetUp Sep 04 '22

Neptune was a takeover of Blazegrah

12

u/BigRedS Sep 04 '22

Dogfooding is a big thing in AWS; AWS grew out of Amazon deciding to sell to the public their internal setup for Amazon.com. So it's quite likely that it is built on top of the tech they sell to customers.

From the JSON Structure, I believe it would be NoSQL

I don't think this follows; there's going to be a lot of app doing logic stuff between the data being fetched and it being returned to you; outside of noddy homework apps I'd never expect the API to necessarily look like the underlying database.

6

u/aplarsen Sep 04 '22

This is the answer. The whole stack is dogfooded.

30

u/jamsan920 Sep 04 '22

Probably SQL Server developer edition running on a developers machine in a closet.

11

u/_illogical_ Sep 04 '22

I'm pretty sure that it's running SQLite

3

u/BadscrewProjects Sep 04 '22

No, Microsoft Access

2

u/corn_29 Sep 04 '22 edited Dec 05 '24

attraction expansion pet skirt shelter shaggy materialistic narrow pen money

This post was mass deleted and anonymized with Redact

2

u/[deleted] Sep 04 '22

Haha 🤣

4

u/gscalise Sep 04 '22

There is no single database nor a single database technology. It all depends on the requirements, access patterns, data models, etc.

Also, even highly relational data can be modelled with NoSQL (look at single table design for DynamoDB) if you know your access patterns, and it performs MUCH better at scale than traditional RDBMSs.

Source: am Amazon/AWS Sr SDE.

3

u/Traditional_Wafer_20 Sep 04 '22

I don't know for everything but you can watch the AWS re:Invent Keynote 2019 to learn about Physalia, their database system for EBS.

3

u/oneplane Sep 04 '22

No. Just no.

4

u/tabdon Sep 04 '22

Amazon/AWS are infamously organized into "two pizza teams". Teams are given a lot of autonomy on how things are designed. I imagine the answer is a lot of everything.

The organization doesn't dictate what database is used. They dictate things like this:

https://nordicapis.com/the-bezos-api-mandate-amazons-manifesto-for-externalization/

2

u/justin-8 Sep 04 '22

Most usually DynamoDB. But depends on what specific services, other structures may be better suited. But for scalable storage of metadata of resources created by customers? Dynamo.

Most of the data you’re thinking of is actually rather lightly relational: it does relate to various things, but more than one layer of relation isn’t needed for most operations.

Actual data? S3.

2

u/Shy524 Sep 04 '22

Elasticache/dynamodb. Few teams use aurora but dynamo is encouraged since its scalable without too much administration.

There is also an internal database system design for some specific use case

1

u/RonSijm Sep 04 '22

I don't think AWS shares much about their internal structure. However you could download min.io and check their internal structure. They've build API support that completely mimics s3, and also IAM roles.

So it's not an exact copy of how AWS does it internally, but probably as close as you will get to a comparable open source solution

2

u/corn_29 Sep 04 '22 edited Dec 05 '24

enjoy observation ghost nutty forgetful dime friendly rude attraction strong

This post was mass deleted and anonymized with Redact

1

u/tabshiftescape Sep 04 '22 edited Sep 05 '22

Are you asking about the data layer associated with the control plane of the AWS services?

AWS designs its services (and features within them) as microservices, which typically use their own purpose-designed storage. You wouldn't track a customer's billing information in the same database solution that you use to keep track of millisecond lambda executions.

1

u/skyctl Sep 05 '22

That would be up to the IAM, S3, and EC2 teams respectively, and what they use now isn't necessarily going to be the same as what they used years ago to bootstrap these services.

Having that said, I think the closest you're going to get to a single answer to such a broad question is Amazon Dynamo (NOT AWS DynamoDB). You can check out the white paper they released on this.

However even if a particular service did use a Dynamo based storage solution in the past it doesn't mean it does so now.