Go back

How S3 is built

0m 0s

How S3 is built

S3 is the world’s largest cloud storage service, holding over 500 trillion objects and hundreds of exabytes of data, with tens of millions of hard drives across millions of servers in 120 availability zones and 38 regions. Originally launched in 2006 with eventual consistency, S3 was designed for unstructured data like PDFs and images, optimized for durability and availability. Over time, customer needs shifted to tabular data analytics, leading to the adoption of Parquet and Iceberg formats, and the introduction of S3 Tables and S3 Vectors in 2024. Key operations remain simple: PUT and GET, with added conditionals for finer control. AWS keeps S3 affordable through continuous price reductions, intelligent tiering (automatic discounts for inactive data), and Glacier (low-cost archive storage at $0.01/GB/month). This is achieved by optimizing every layer—from hardware and data centers to software—allowing customers to grow their data economically for analytics, AI, and other uses. S3’s mission is to provide the best storage service globally, enabling customers to store and use data without worrying about costs or constraints.

Transcription

14648 Words, 78632 Characters

English
Intro AWS S3 is the world's largest cloud storage service, but just how big is it, and how is it engineered to be as reliable as it is at such a massive scale? Mylan is the VP update on analytics at AWS and has been running S3 for 13 years. Today we discuss the sheer scale of S3 in the data stored and the number of servers it runs on, how seemingly overnight AWS one from an eventually consistent data store to a strongly consistent 1, and the massive engineering complexity behind this move. What is correlated failure, crash consistency and failure allowances, and why? Engineers on S3 live and breed these concepts, The importance of formal methods to ensure correctness at S3 scale, and many more. A lot of these topics are ones that AWS Engineering greatly talks about in public. I hope you enjoy these rare details shared. If you're interested in how one of the largest systems in the world is built and keeps evolving, this episode is for you. This episode is presented by Statsic, the unified platform for flags, analytics, experiments, and more. Check out the show notes to learn more about them and our other season sponsors. So, Mylan. Speaker 2 Welcome to the podcast. S3’s scale Thanks for having me. Speaker 2 To kick things off, can you tell me the scale of S3 today? Speaker 3 Well, if you want to take a step back and just think about S3, it is a place where you put an incredible amount of data. And so right now S3 holds over 500 trillion objects. We have hundreds of exabytes of data and we serve hundreds of millions of transactions per second worldwide. And if you want another fun stat, we process over a quadrillion requests every single year. And what's under the hood of all that is also pretty amazing scale. If you think about, you know, what's underneath the hood of Astria that fundamentally were were disks and servers which sit in racks and those sit in buildings. And if you try to think about all of the scale of what is under the hood, we manage 10s of millions of hard drives across millions of servers and that is in 120 availability zones across 38 regions, which is pretty amazing if you think about it. Speaker 2 So deep down it, it all starts with hard drive sitting inside server, sitting inside racks. And then you have a bunch of these racks and then rows of them buildings of them, right? And that's what you said. So there's 10s of millions of hard drives deep down in, in in the bottom of this. Speaker 3 That's right. In fact, if you think about the scale of this, if you imagine stacking all of our drives one on top of another, it would go all the way to the International Space Station and justice about back. And so like that. I mean, it's kind of a fun visual to have for us who work on the service. But you know, kind of fundamentally it's, it's really hard to get your brain around the scale of three. And so a lot of our customers, they, they don't, they, they assume the scale is there. They assume that, you know, all of the drives are always there and they just focus on what S3 is to them, which is it just works. It just works for any type of data and all of your data. Speaker 2 Yeah, even if, I mean, even for me, for the scale, when you talk about exabytes, I actually had to look up exabytes because I know of petabytes, which is already massive. If if a company has like one or two or three petabytes of data, it's it's tons and exabyte is it is, is it a yes, it's 1000 petabytes is an exabyte. And and you told me that you're you're, you're thinking in that level. It's just hard to hard to fathom. Speaker 3 Yeah. We, I mean, we have individual customers that have exabytes of data. Individual customers have exabytes of data and what they call a data lake, Although last week I heard a great term. We had the Sony Group CEO talk about what Sony is doing with data and they refer to it as a data ocean and not a data lake, but a data ocean. And so like if you have exabytes of data in your data lake, it is in fact a data ocean. And that ocean is is kind of fundamentally S3. Speaker 2 Can you tell me how S3 started? How S3 started I I did some research and there was a story about a distinguished engineer sitting in a pub in Seattle. Who knows it was true or not, but I read this was a story that he was a bit frustrated with engineers at Amazon building a lot of infrastructure again and again. Speaker 3 Yeah, if you think back into, you know, S3 development really started in 2005 and we launched as a first AWS service in 2006. And if you think about the technical problems of 2006, you know, a lot of customers were building things like like ecommerce websites, right, like Amazon.com. And so the engineers at Amazon knew that they had a lot of data that at the time was very unstructured data. It was PDFs, it was images, it was backups. And they needed a place where they could store that at an economic price point that let them not think about the growth of storage. And so they built US 3, and they really built it for a certain type of storage. And so the original design of S3 in 2006 was really anchored around eventual consistency. And the idea of eventual consistency is that when you put data in storage for S3, you know, we're not going to give you an ACT back on your put unless we actually have your data. So we have your data. But the eventual consistency part is that if you were to list your data, it might not show up because it's being eventually consistent. This is there, but it might not show up on a list. And so we did that at the time that a consistency model at the time we built that because, you know, we were really optimizing for things like durability and availability. And it worked like a champ for, you know, e-commerce sites and things like that. Because, you know, when a human was interacting with an e-commerce site and an image happened to not show up exactly at the moment where you put the data into storage, it was OK because a human would just refresh. And so when we launched in 2006, here's a fun fact for you. 2006 is actually when Apache Hadoop first began as a community as well. And so we had a set of what I think of as frontier data customers like Netflix and Pinterest who took a look at things like Hadoop. And they put it together with the economics and the attributes of S3, which is, you know, unlimited storage with pretty good performance and a great price point. And they, they decided to build their, you know, what we first began to call data lakes at the time they decided to build to extend the idea of unstructured storage and include things like tabular data. And so the first wave of Frontier data customers were adopting quote UN quote data lakes in about 2013 to 2015. Those were the frontier data customers born in the cloud. And around 2015 to, I would say 2020, we started to see all the enterprises take that same data pattern of how can I use S3, the home of all the unstructured data, you know, on the planet and extend it to tabular data. And that's when about five years ago, 2020, I started to see a ton of exabytes of, you know, basically parquet files. And you know, I, I have worked on S3 for a minute. I started working on S3 in early 20, I guess it was 2013. I've been at AW since 2010, so kind of a while. And the rise of Arquet was really interesting because what people did is they said, oh OK, I like the traits and the attributes of three and I want to alley it to a table. Parquet, Iceberg, and S3 tables And so I am going to run my own parquet data in S3. And then, you know, around 20, I would say 19/20/20, we started to see basically the rise of iceberg. And iceberg at the time, you know, is incredibly popular OTF and it gives the table attributes to the underlying parquet data. And customers started to do it. And you know many of my largest data lakes across different industries and different customers. And so one of the things that we did in 2024 is we introduced S3 Table. Speaker 2 Just for those who don't know what Iceberg is. So it's it's an open source data format for like massive analytic workflows, right? Speaker 3 That's right. If I ask our customers of these data oceans why they care so much about Iceberg, it's because they want to be able to have what a lot of customers are calling this decentralized analytics architecture where, you know, they can have lines of businesses or different teams within their company that pick what type of analytics to use as long as it's iceberg compliant. And so if Iceberg is the common metaphor for data, for tabular data, then you have choice, you have flexibility and choice for what type of analytics engines you use in a decentralized analytics architecture. And so I think that's one of the reasons why Iceberg is just take it off is that it makes it easy to use data at scale, but it also gives a business owner this, you know, the chief data officers of the CTO's of the world, they give some future proofing for analytics. They can replace our analytics, they can change it out, they can adopt new types of analytics and AI because you have this iceberg at the bottom turtle of S3. We lost that's three tables and 2000 in December 2024. This year we've had over 15 new features that we've added to S3 tables and and then this year of course, we launched the preview of S3 vectors in July and then last week we were generally available. And so you know the story of S3, it's like a story that our customers have written for data, but it's been super fun to work on all these different evolving attributes. Speaker 2 As an engineer, what is the kind of basic architecture and the basic terminology I should know about when I'm starting to work with three? S3 for developers When we first launched in 2006, the whole goal for Three is to provide a very simple developer experience. And we've really tried to stick with that. In fact, when the engineers and when we're sitting around and we're talking about what do we build next, we always go back to that idea of how do you make things really simple to use, to use S3. And so fundamentally S3, we have a lot of different capabilities now, but it's really about the put and the get put of the storage in and the get of the storage out and where we can do that really well at scale that that is kind of the heart of three now. We have a ton of extra caabilities that we've launched overtime, but you know, fundamentally when customers think about using S3, they think about the put and the get. Speaker 2 Yeah. So like PUT data, you get data and I guess some of the other like operations, it's a bit like HTTP, right? There's also delete list, copy a few, kind of other like I guess primitives. Speaker 3 There is and you know if I think about where we have gone over time, we've added capabilities on top of that just based on what developers are trying to do. OK, let's just take put. OK, we recently added a set of conditionals to the put capability. And like last year, we did put if absent or put if match. This year we did a copy if absent or put if match and we did delete if match and the. The core thing about FOR for us with conditionals is that we can give developers the capabilities of doing things like the PUT, but to do it based on the behaviors of their application. Speaker 2 Outside of the the get them put the basic operations. I guess the base terminology of that you should just know about is the buckets, objects and keys, right? That's how we think about our data. Speaker 3 Yeah, and now it's not just objects. If you think about the two latest primitives or building blocks we've introduced as as native to S3, one of them is the iceberg table with our S3 tables, and the other one is is vectors. And you know, under the hood of an F3 table is a set of parquet files that we're managing on your behalf. But that's not the case for vectors. A vector is just basically a long string of numbers and that is a new data structure for us and it's sitting in S3 just like your objects. Speaker 1 Mylan was talking about the building blocks of S3 like the PUT, get, tables and vectors. Speaking of primitives for building applications leads nicely to our seasoned sponsor Work OS. Work OS is a set of primitives to make your application enterprise ready. Primitives like Single Sign on authentication, directory sync, MCP authentication and many others. One feature does not make an app enterprise ready. Rather it's a combination of primitives altogether that solves enterprise needs. When your product grows in scale, you can always reach for new building blocks for infrastructure from places like Adobe or similar. Similarly, when you need to go upmarket and sell to larger enterprises, Workforce provides the application level building blocks that you need for this. Workquest has seen the edge cases, the enterprise complexity and solve this for you so you can focus on your core product. One example of such a building block is adding authentication to your MCP server. This is a typical screen when you are about to authenticate with an MCP server. If you would have to build it from scratch, it gets pretty complex to set up the Oauth flows behind the scenes. But with Workquest it's a few simple steps. Add the Alt Kit component to your project, configure it via the UI. Then you just direct clients of your MCP server to authorize via Altkit and verified response you get to VSM code and that's pretty much it. This is the power well built primitives to learn Morehead to work os.com. And with this, let's get back to S3 and how it all started. Speaker 2 So I, I, I'd like to still go back to the beginning of, of S3 when it was launched, it was pretty shocking for the broader community because S3 launched with the pricing of $0.15 per GB per month, which was about 1/3 to 5th cheaper than anything else. Why AWS keeps S3 prices low The going rate at the time was something like $0.50 or $0.75. And on the first day, I read that like 12,000 developers signed up immediately. A lot of companies immediately or very quickly moved over. And then the surprising thing was that as we kept cutting prices, it was unheard of before you were there in the 2000 tens when some large price gets happened. Can you tell me what was the thinking inside the S3 team on the this unusual pricing? It seemed customers would have been willing to pay more and also the the cutting of prices continuously even today, I think today it's something like 2 cents or 2.3 cents, something like that for the same storage as as as it was $0.15 on launch. Speaker 3 Yeah. You know, I think part of this goes back to what the goal is for S3, OK? And so the mission of S3 is to provide the best storage service on the planet, OK. And our goal too is that if you think about the growth of data, IDC says that data is growing at a rate of 27% year over year. But I have to tell you, we have so many customers that are growing so much faster than that. Speaker 2 Yeah, I was about to say it sounds pretty low. Speaker 3 I know like that, but that's an average across everything. We have a lot of customers that grow twice or three times at that rate. But if you think about that, OK, you think about all the data that's being generated from sensors, from applications, from, you know, AI from all these. Speaker 2 From from just taking photos, having that every day, right? Speaker 3 Photos. That's right. Like, you know. And you know, if you think about your phone too, think about the resolution and how the resolution of the cameras on the phone have grown, you just have this like kind of what Sony talked about with the data ocean, OK. And in order to have all that data and to grow it, you have to be able to grow it economically. You have to be able to grow it at a price point where you don't really think, OK, what data am I going to delete now because I'm running out of space? You don't have that conversation with us 3 customers because of of two things. 1 is we do lower the price of either storage or the caabilities of what we're doing. Like for example, we lowered the cost of compaction for three tables retty dramatically within a year after launching 3 tables. It's not just that. It's like the overall total cost of ownership of your storage. We give you the ability to tear into archive right storage. We give you the ability to do something called intelligent tearing, which is if you don't touch your data for a month, we'll give you an automatic discount on that data because we're watching your storage and you don't touch it for much. We'll give you up to 40% discount on that storage. And it's like dynamic discounting, so you don't even have to think about it. And so our whole goal is that you can grow the data that you need to grow cuz we know that's being used to pre train models. We know it's being used to fine tune and do any type of post training of AI. We know you're using it for analytics. We know you're using it for all these different things either now and in the future. And so our goal is so that you can keep your data and you can use it in a way that advances whatever The thing is that you're doing, whether it's life sciences or you're an enterprise, you know, in in manufacturing, right? Whatever you need, the data should be there and you should be able to grow it and keep it and use it any way you want. Speaker 2 I, I did want to ask you about this part. AWS pricing tiers So there's intelligent tearing, which was launched in 2018, so like 12 years after SC was launched. One thing that really got my attention, Amazon Glacier, which is, was launched in 2012, so a long time ago. And it's, you can store data that you don't need immediate access to your OK, waiting for some time to, to get access to it. I think maybe even hours. When it launched, it was only one cent per GB per month, which was again, this was something back then the going rate for storage was about $0.15. So almost like almost 10 times cheat. How do you do that? Like what what is the architecture and thinking behind how you're able to have this trade off of like, look, if you don't need your data quickly, we can do it a lot cheaper. How, how, how could I imagine the kind of trade-offs that that you and the engineering team were were were thinking of making? Speaker 3 Well, you know, I mean, as you know, I'm, you're an engineer yourself and you know, as you know, a lot of engineering is about constraints, right? And that is the fun part about working on on S3 is that when you think about constraints, you think about constraints that we have for availability, you consider, you think about constraints that we have around, you know, the cost of storage. We start to get really, really creative, OK. And in S3, because, you know, we build all the way down to the metal of S, you know, of the drives and the capabilities that we have in our hardware, we're able to drive, you know, efficiencies at every single part of our stack. OK. And so our engineers, when they get together and they and they talk about the constraints, they talk about the design goals. We'll do something like we'll set a, a, a, a target for, you know, the, the cost of a bite and we'll drive for that and we'll drive for it at every single part of the process. And the part of the process that we are also including is, is, you know, it includes a data center. How do our data center tech technicians be able to operate the, the service of S3 from a hardware and a data center perspective, like the physical buildings, just like we do the same thing for the software and the layers of S3 itself. And when you have that, when you have that ability to, to run across the whole stack all the way down to the physical buildings. And we're thinking about so deeply about the cost and the lifetime of every byte you're able to do things like like Glacier. Speaker 2 You mentioned something really interesting that when S3 started, it was eventually consistent, which means that data eventually arrives. Availability and durability It, it might not be there and you might be behind and there's a lot of things that you can do with this and it gives you some constraints. But you mentioned that the reason that the team launched this because durability and availability was more important and I assume of course cost as well, but. During those initial phases, while SC was eventually consistent, what what kind of benefits does it give to have eventual consistency? Is it a cost constraint? Is it just easier to do high availability systems from from an engineering perspective? Speaker 3 Well, I mean from an engineering perspective, the main optimization was it was availability. It was not necessarily durability, but it was availability, OK. And so if you take a step back and and look at the original design of S3, we were really focused very hard on availability. So, so let's take a step back, OK? So when you talk about consistency, it's the property where the object retrieval, the object get reflects the most recent put to that same object. OK. And so if you think about, you know, what parts of the system of S3 that really hits, a lot of it just kind of starts with our indexing subsystem. So if you think about the indexing subsystem in S3 that holds all of your object metadata. And so that's like it's name, it's tags, it's creation time. And the index, our index is accessed on every single or put or list or head or delete any API call like that. And so every single data lane request where you go back into our storage system to go get an object goes through our index. And if you think about it, more requests go through our index in our storage system because, for example, it's serving thing like head requests and list requests that don't actually end up going back into our storage system at all. That's those are, you know, metadata or index requests. So, you know, if you think about our indexing system, we have a a sword system in there, OK. And that is a really central concept, a storage system in the middle of our indexes system. Speaker 2 So you need you need the storage system for your index in index system, right? Speaker 3 That's right. And so we have to configure and size the system to deliver on our, you know, our design promise for our, for both availability and, and durability. OK. And so the data is basically in our, in our, in our index system is stored across a set of replicas. And it uses something called, you know, it's, it's basically a quorum based algorithm, OK. And a quorum based algorithm tends to be very forgiving to to failures. And so if you think about how we implemented quorum in our index system, we start first from servers that are running in these separate availability zones. And the reason we do that is that it of it lets us avoid correlation on a single fault domain, OK. And since the failure of like a single disk, a server, a rack, a zone, it only effects a subset of data. It never effects all of the data for a single object or even a majority of the data for a single object, which we have charted across, you know, a wide spread of, of servers. So like this, this core of availability for us is this idea that we spread everything. And so when a read comes in, it's coming into the S3 front end and we just heavily cache objects across their systems. When a read comes in, it could route it random and you could create a situation where you're creating an an inconsistent read. And so when we have quorum at the index storage layer, we can see reads and writes overlap, but in in the cache they don't because we're optimizing for availability. Speaker 2 So, so, so just so I understand the the first part, the eventual consistency, correct me if I'm wrong, that you can just, you know, write to all these distributed nodes and you ask one of them and if it doesn't have it, no problem because it will be eventually consistent. That's right. You now have high availability because you don't need to worry about all of them. Speaker 3 Being that is correct. Speaker 2 And that's he's 1 of AWS and it was, it gives you availability. And now you're now explaining how you're able to behind the scenes turn this into a strongly consistent. The strong consistency means that it's guaranteed to have the the whole system's state, which is hard to do because you could have distributed failures, etcetera. Speaker 3 And this replicated journal, you know, it took us a while to build. I won't lie. We don't talk about this stuff very, very much, OK, because this is kind of the the secret sauce of S3. But you know, again, like our engineers who were in the room, they were thinking about how do you deliver on both the strong consistency without compromising availability. So I go back to constraints, OK. So in in that case we were not trading off the consistency and availability anymore. And so the engineers had to come up with a new data structure. Basically we do this in S3 vectors basically is a new data structure that we came up with as well. But you know, if you think about what we had to invent for strong consistency at SV scale without relaxing the constraint of availability is we had to build this replicated journal, OK? And the replicated journal is basically a distributed data structure where we're chaining nodes together so that when this riot is coming into the system, it's flowing through the nodes sequentially. OK. And so a reader write and a strongly consistent system for S3, it flows through these storage nodes in the journal sequentially. And so every node is forwarding to the next node. And when the storage rows get written to, they learn the sequence number of the value along with the value itself. And therefore on a subsequent read like through ARM our cash, the sequence number can be retrieved and stored. And so now you have this strongly consistent and highly available capability in S3. And the heart of that is actually this replicated journal. Speaker 2 OK. But what's, what's the cash on one-on-one end? Because there's always, always something with trade-offs. You always have something so one, and you obviously have more complicated business logic. And then I guess the second obvious question is what about failures? Because in the case of eventual consistency, you don't worry too much about one failure clearly. And in this case, what if a node in the sequence fails either at the, at the first time or, or later or how does the system monitor this recover? Because that that's, I guess that's going to be the tricky part, right? Speaker 3 There's another piece to this puzzle that we implemented, which is, you know, it's, it's basically a cache coherency protocol. The cost of S3's consistency And the idea is that this is where we built what we think of as a failure allowance, where in in this mode, we needed to retain the property that like multiple servers can receive requests and some are allowed to fail. And so it's kind of this combination of this replicated journal as a, as a new data structure, plus we implemented this new cash coherency protocol that gave us a failure allowance. And those two things working in concert gave us this strong consistency. I will say to this does come at some actual cost. Speaker 2 I was about to say, like you, nothing is free in engineering, right? Speaker 3 There's hardware cost in this because you can imagine where we've done some more engineering behind the scenes. But I remember sitting in the room with our engineers on S3 and we did a debate on this. We, we debated it. We said, you know, there's costs. There's like actual costs to the underlying hardware for this. And do we pass it along to customers or not? And we made that explicit decision not to, we said. Speaker 2 Really. Speaker 3 Yeah. We said that when we launched this, we should launch strong consistency. We should make it free of charge to customers and it should just work for any request that comes into S3. We shouldn't sort of say it's only available on this bucket type or what have you. This should be true for every request made to S3. And part of that mindset for S3 is like how can we provide these type of capabilities and how can we make it something that becomes a building block, like part of the building block of S3 And you shouldn't have to think about the cost of it. Speaker 2 This was the very surprising thing of this launch by the way, that suddenly AWS said like, OK, everything is strong existent. It does not cost you more latency wise. Your latencies haven't shouldn't have changed significantly. I mean, I, I'm sure when you roll out initially use your measurements, etcetera. But but that was the problem. That was why I couldn't really believe it when I, I, I reread history because it typically doesn't happen. Typically strong consistency does add latency or it increases cost if it doesn't have latency, there's always this trade-offs. And I mean, sounds like you either swallow the costs or, or costs caught up, but it's, it's very unusual. So. Speaker 3 If I think about that, one of the things that was also very important for us, and we haven't really, I've talked about this as much, but it's, it's, we think about a lot on the SV team is correctness. OK. So it's one thing to say that you're strongly consistent on every request. It's another thing to know it. And so when we built this strong consistency, you know, I, I, I talked about our new caching protocol, I talked about this replicated journal as a new data structure, you know, that took a little bit of time to, to do and to get right. But at S3 scale, we could not say that we were strongly consistent unless we actually knew we were strongly consistent. OK. And So what does that mean? How do you do that at S3 scale when everybody is using it for every last workload? In fact, one of the reasons why people use it is because our scale is such that we're de correlating workloads and you can run absolutely anything on S3. But how do you know? Speaker 1 Mylan just talked about how strong consistency made it so much easier to trust S3. Trust is something that is just as important when writing code, especially when with AI, we write more code than before. And this is a good time to talk about our season sponsor, Sonar. What is the impact that AI is having on developers? Let's look at some data. A new report from Sonar, the State of Developer Server Report, found that 82% of the developers believe they can code faster with AI. But here's what's interesting. In this same survey, 96% of developers said they do not highly trust the accuracy of AI code. This checks out for me as well. While I write codes faster with AI agents, I don't exactly trust the code it produces. This really becomes a problem at the code review stage, where all this AI generated code must be rigorously verified for security, reliability, and maintainability. Sonar Cube is precisely built to solve this code verification issue. Sonar has been a leader in the automated code analysis business for over 17 years, analyzing 750 billion lines of code daily. That's over 8 million lines of code per second. I actually first came across Sonar 13 years ago in 2013 when I was working at Microsoft and a bunch of teams already used Sonarq to improve the quality of their code. I've been a fan since. Sonar provides an essential and independent verification layer. It's the automated guardrail that analyzes all code, whether it's developer or AI generated, ensuring it meets your quality and security standards before it ever reaches production. To get started for free, head to sonarsource.com/pragmatic. And with this, let's get back to the importance of strong consistency at a WS. Speaker 3 How do you know that you're strongly consistent and that is why we used automated reasoning? Automated reasoning and proof of correctness What is automated reasoning for those of us who are not as familiar with this, which will be most people outside of of very few domains like S3? Speaker 3 Yeah, it's, I mean, S3 uses automated reasoning all over the place, OK. And automated reasoning is a specialized form of computer science, OK. And Gurley, if you, if you kind of think about if computer science and math got married and had kids, right, it would be automated. Speaker 2 Recent, is it formal methods or based on formal methods? That's exactly, yeah. I mean, I study computer science, so yeah, that's fun. So it's actually proper formal methods that you're using. Speaker 3 That is right. And we used formal methods in many different places in S3, but one of the first places that we adopted was for us to feel good that we actually had delivered strong consistency across every request. So what we did is we proofed it, right. We basically built a proof for it and then we incorporated our proof on check insurance into this index area that I talked about, right where you have your caching and then you have your storage sub layers of the index capabilities. And so when somebody, anybody is working on our index subsystem now and they're checking in code into the code pass that that are being used for consistency, we are proofing through formal methods that we haven't regressed our consistency model. Speaker 2 And can you just give us a rough idea? Because the formal methods that I have have studies that they were pretty abstract, the things like designing languages, how to have like the, the different operators and of course there's some maths involved as well. But what are they? Are they like primitives like servers, network, etcetera and models being built? Data flows? Like how? How can I imagine a a simple proof of of something inside S3 roughly at a really high level? Speaker 3 Yeah. I mean if you if you go back to the fundamental notion of a proof, you are proving something to be correct, OK. And so the places that we use these proofs, we use them in consistency where we built a proof across all the different combinatorics to make sure that the consistency model is correct. We use it in cross region replication to prove that a replication of data from one region to another arrived. And we use it in different places within us three to prove the correctness of API. In all of these cases, you know, we talked about durability, we talked about availability, we talked about cost. But just as strong of a a principle, a design principle for us across S3 is correctness. It's a correctness of, you know, a thing, an API request, you know, an operation as it were. And the key thing for us too is that you don't, you don't want to just proof it once. You want to proof it on every single check in and you want to proof it on every single request. So you can verify, you can validate and verify that you are doing in fact what you say you do. And I think for us, you know, at a certain scale math has to save you, right? Because at a certain scale you can't do all the combinatorics of every single edge case. But math, math can save you and help you on this at S3 scale. And so we use, we use formal methods in many different places of S3. We have some research papers too. I can send you some links to some research papers. Were you talking? Speaker 2 About yeah, please, please do and we will and we will put it in the the show notes below so and anyone can check it out because I think it's it's really interesting I feel formal methods are not really a thing in a lot of startups and even infrastructure startups yet, but it sounds very reassuring to me to actually have an ongoing proof of that and Speaking of which I want to ask about one thing that is related to this durability. Durability at AWS scale Amazon S3 has very, very like high durability promises. I think it's 11 nines, which I had to like do a double check on because in, in back in systems, whenever you say 3 nines, it's like when you say 4 nines of availability, we're not talking to your availability. 4 nines is already hard to achieve and beyond that, it just gets very expensive. And I have never heard of 11 nines of durability. Now this is durability and not availability. One question that I got when I when I shared the staff publicly, what people, what one thing people were asking and I was also thinking, how can you prove that not just in a formal way, but you're now storing, as you said, 500 trillion objects, which is now large enough that just by this durability promise you should be you might be losing some of them. Do you actually like validate it on the actual data as well on outside of the proof? Because I assume in the proof you will have assumptions on hardware failure rate, which might or might not be not be true. So my, my question is that, that Amazon S3 level when, when you you are able to look at the, are we living up to, for example, durable promise? How do you go about that and what are your findings? Speaker 3 Yeah. So we just spent a lot of time talking about our index subsystem because that is the subsystem that is related to consistency. But when you think about durability, I mean you think about it all in your on different levels of the S3 stack, but we really think about it in the storage layer. And so if you think about it, in the storage layer, you have this design, this promise of, you know, the design here. And underneath that is a, a combination of things. It's software, but it's also the physical layout of where our data is across everything that we have in S3. And you know, one of the things that I talked about is that we have, you know, disks and servers which sit in racks, which sit in buildings. And we have 10s of millions of these hard drives. We have millions of servers and we have 120 availability zones across 38 regions. Speaker 2 Yeah, and one available zone is like 2 available zones are two physically separate locations. Speaker 3 Just to be clear, separate and sometimes there are ways away from each other and in some of our regions we have more than three available. I mean the availability zones gives us a different domain, a fault domain. If I were to think about durability, I think the most important thing for us is our auditors. So you think about distributed system, we talked about the put in the gap. We have many, many, many micro services that are all doing one or two things very well in the background, OK. And so we have many different varieties of the health checks, but we also have repair systems and we have auditor systems and our auditor systems go and they inspect every single bite across our whole fleet. And if there are signs that there is repair needed, you know another repair system will come in place. And these are all, you know in the in the world of distributed systems, these are all microservices working together loosely correlated by communicating through well known interfaces. And so that you know, collection of systems which are over 200 microservices now that all sit behind 1S3 regional endpoint and a fair number of those subsystems as micro services are all dedicated to the notion of durability. Speaker 2 So, so they will go and check and log and report back. So do I understand correctly that in any given time frame at S3 someone or some people or or some systems can actually answer the question of what is our durability the past week, month, year and so on? Yes. OK, great. So so you can actually verify your your durability promise that check if the map is mapping. Speaker 3 Yes. And you know, part of our design is that at any given moment in this conversation that you and I have had just just today, we're we're having servers fail because servers fail. And So what we are building and what we've built in S3 is an assumption that servers fail. And so a lot of our systems are always, you know, they're first of all, they're, they're, they're checking to see, you know, where any failure might hit an individual node. How does it affect a certain bite? What repair needs to automatically kick in place? And so this system is constantly moving behind the scenes, if you will, while, and that is a completely separate thing from the get in the put. The get in the put is what the customer sees. There's this whole universe under the hood of how do we manage the business of bytes at scale? Speaker 2 I'm just thinking because for a lot of us engineers who are building like moderately sized systems, I'll say compared compared to S3, they can already be big. Correlated failure and crash consistency But a failure is, is a big deal. Like, you know, like a, a machine going down again. I I have a small side project and my storage filled up and I started to give errors. And this is a big deal because it rarely happens to me. This is the first time it happened in three years. Yeah, but I understand it. In your business or or when you work at S3 scale. This is just every day, and the question is not when, it's just how often. How do you deal with it? I guess it's a different world. Speaker 3 It is a different world, and the trick is to really think about correlated failure. OK. So if you're thinking about availability at any scale, it's the correlated failure that'll get you. Speaker 2 And what is a correlated failure? Speaker 3 OK. So that's super interesting. So if you think about what I talked about with, you know, eventual consistency, we talked about quorum, OK, And quorum is OK for one node to fail, but if all of the nodes go South, for example, and they're in the same availability zone or on the same rack, then you're really going to be messing with your availability of the underlying storage, OK? You just lost your failure allowance that I talked about with the cash because they all failed together. And so like a correlated failure is an incredibly important thing to think about when you're thinking about availability. And so when we're designing around correlated failures, The thing is that we have to think about is like, do we expose or how are those workloads exposed to different levels of failure? So when you upload an object to S3 with a PUT, we replicate that object, OK? We don't just store 1 copy of it, we store it many times. And that replication is important. It's important for durability. But what's interesting about it, it's also important for availability because if any of those correlated failure domains fail, like if a whole AZ fails, there's still a copy somewhere else and the data is still available, available somewhere, even though an availability zone has failed or RAC has failed or server is failed or so forth. OK. And so that idea of how do you manage and design around correlated failures with both our physical infrastructure as well as our logical infrastructure is super important for S3 for both availability and durability. We also do things like we think about something called crash consistency. I mean, currently you can tell I can go on and on about this. So you just have to stop me. Speaker 2 No, but this is the interesting stuff. Speaker 3 All right. So the whole idea of crash consistency is that a system, any system that you build, it should always return to a consistent state after a fail, stop failure. And if you can like do things like reason about the set of states that a system can reach in the presence of failure and you just always assume the presence of failure, can you also assume the presence of consistency and availability? Then you just design all of these different micro services to all work together in an underlying capability like S3. But that's what our engineers do. They think about like crash consistency. They think about correlated failures. You know, they think about failure allowances and caches, right? And it's it's all that deep distributed system work that that our engineers come in every day to work on. Speaker 2 Can can we talk about how you think about failure allowances because again, there, there is a concept of error budgets outside and other companies as well. Failure allowances I feel it's a bit like loosely handled, whereas I feel this is kind of your bread and butter. So what is a failure allowance and how do you measure it? And what do you do if you if you overstep it or overspend it? Speaker 3 Yeah, I mean, I think that the idea of a failure allowance is want to have it like you have to have it. If you assume for no, you know that you'll never have a failure, you will you'll actually have a very bad day for your customer. And so we account for failure allowances and but the the most important thing is let's just talk about the failure allowance in our cash. So how do we manage that? Well, we manage it in such a way that you'll never experience it because we size it, right. And if you're sizing the cash and you're making sure that the underlying capabilities in the hardware are always there. And we have like I talked about those distributed subsystems, those micro services that are all in our operating under the hood, We have a ton of them that do nothing but just track metrics, right. And like you know that the sizing of our cash is all related to the metrics and then the size of our underlying. Speaker 2 System all the metrics, yeah. Speaker 3 Yeah, that's right. And so one of the really big benefits of running on S3 is because our system is so huge, you have these massive, you know, layers, right? And the massive layers are all managing things like correlated failures and, and, and failure allowances. And because they are so huge at the scale of S3, any application that's sitting on top of S3 gets the benefit of it. Speaker 1 Let's take a break a minute from S3 to talk about a one-of-a-kind event I'm organizing for the first time, The Pragmatic Summit in partnership with Stat Sig. Have you ever wanted to meet stand out guests from the Pragmatic Injure podcast? Plus folks from cutting edge tech companies and learn about what works and what doesn't in building software in this new age of AI? Come join me 11 in February in San Francisco for a very special one day event. The Pragmatic Summit features industry legends and past podcast guests like Laura Tacho, Kent Beck, Simon Wilson, Chip Hyun, Martin Fowler and many others. We'll also have insider stories on how engineering teams like Cursor, Linear, Open AI, Ramp and others build cutting edge products. We'll also have round tables and carefully created audience where everyone and everyone is interested to meet and chat with, something I'm hoping will make this event extra special. Seats are limited and you can apply to attend at pragmaticsummit.com. Talks will be recorded and shared, and paid subscribers will get early access afterwards as well as a thank you for your additional support. I hope to meet many of you there and I am so excited about this event. And now let's jump back to S3 and the massive scale of the service. Two opposing principles in S3 design To get a sense of what what, what the reality is like working as an engineer and engineering leader inside an organization lot like this, I read a quote from a distinguished engineer, Andy Warfield, who who said, I'm, I'm just quoting what, what, what he said. Early in my career, I had this sort of naive view that what it meant to build large scale commercial software, that it was basically just code. The thing I realized very quickly working on S3 was that the code was inseparable from the organizational memory and the operational practices and you know, the scale and, and the scale of the system. Since you've now been more than a decade in S3, how do you think of this, this beast, this, this really complex system, hundreds of micro services data that is hard to fathom, you know, unless you think of the hard drive stacking all the way to the space station. And how do you Nigerians kind of wrangle this? Because it does feel a bit intimidating, I'm not going to lie. Speaker 3 Well, I think so much of this just comes back to the culture and the commitment on the team. Yeah, I've worked on S3 for a very long time now, and I have such deep respect for the engineering community on S3. And you know, honestly, I mean, this is true for all the services in our data and analytics stack, but we have engineers in S3 and they come in every single day with this deep commitment to the durability and availability and the consistent of your bite. And so the type of conversations that we have are so interesting because we have people and really, you know, these are people who are early out of school, They're people who've been working on us through, we have engineers who've been working on us through for 15 years and everything in between the creativity and the invention of S3. Like you have this tension, which is like on one side, you're like, you have to be very conservative with S3, right? And on the other hand, like, I mean, we have this principal engineering tenant called respect what came before. And that's an Amazon engineering tenant, which is if it has worked for many, many years, you have to respect that. But then there's this also this tenant, these two tenants are a little bit in tension with each other, which is kind of what makes it so fun. Amazon engineering tenant is called to be technically fearless. And I believe that the S3 engineers are just amazing at this, at respecting what came before. Because if we build new capabilities in S3, we have to maintain the properties, the traits of S3, which is a just works and you get that durability, availability etcetera. But at the same time, we have to be technically fearless because our ability to go into the world of conditionals, our ability to go into the world of, you know, native support for iceberg or for vectors means that we are extending this, this foundation of storage in a way that helps customers build whatever application they need now and in the future. And so that combination of the two things, that is sort of when I think about RS3 engineering team and I think they come in every day and they embody that. Speaker 2 Now going back to the evolution of of S3 from unstructured to structured data, you were mentioning how Hadoop, the data warehouse, what, what was a big use case where customers start to use it on top of S3. S3’s evolution And then at S3 you noticed you're like what a lot of customers or some of your biggest customers doing and you kind of built it yourself with, with more structured data. And then S3 tables came along and then vectors. Would you mind sharing a little bit more on, on how you evolve S3? Because this was another question that I want to ask people about what they like to know about S3. One of the question was like, like, is it done? Is, is it finished or, or is it still evolving? Because there is this notion that S we can store anything already, right? Like any, any object, any BLOB, what, what new thing is there? And yet we have a lot of new things. Speaker 3 Yeah. And if you kind of go back in time a little bit and you think about, you know, the rise of Parquet, OK, So the rise of Parquet data in S3 started about 2020 and we started to see more and more people store their tabular data in S3. And if you think about what Iceberg provided, it provided a replacement for Hive, OK. So if you think about Hive and Hadoop, Hive was basically giving your file system access into S3 unstructured storage. Iceberg is giving that Iceberg that tabular access including the, you know the compaction and all the table maintenance that goes along with it into your Parquet data. And I actually think that the world's data for tabular data is going to live in the future in S3. And if you just think about the launch that for example, Super based in last week Superbase announced that their Postgres database is now going to is just going to do secondary rights directly into an S3 table, just like their Postgres extension for vector is going to integrate directly with S3 vectors. And so if the world of database, if the world is data as a source, if you will, goes directly into a nice S3 table, what does that mean for the world's data? OK, so SQL as we know is a lingua franca of data, and the world's LLMS have all been trained on decades of sequel and therefore. Speaker 2 And Python Sequel and Python. Speaker 3 And the stuff that's already out there. And so if you think about this, you know, we have many, many AWS customers who know the S3 API pretty darn well by this point. It's pretty simple API, but now you have the ability to interact with data in S3 through Sequel. And what that means is that you don't have to be, you know, somebody who's building cloud applications or no S3. You just need to know Sequel. Speaker 2 And this is with S3 tables, right? Speaker 3 Well, that's three tables. And so you can just write sequel into an S3 table. And whether you're an AI agent or a human right, you're introducing the lingua franca of data as a native property of S3 with S3 tables. And I think you're just going to see that take off in the upcoming years. Speaker 2 And your latest launch is S3 Vectors. Can you share a little bit what it takes to build a new data primitive like vectors just just behind the scenes, how long it takes, how this seems comes together and, and maybe what are some engineering challenges of launching some something like this? S3 Vectors And again, we're talking about vectors, right? So like you can use use embeddings whenever you have LMS, you create an embedding, it's a vector. You want to store that somewhere you will need to do search on it. There's specialized vector databases, there's specialized vector editions, etc. So I'm assuming this is the the function of that that S3 vector supports very nicely. Speaker 3 Yeah. And you know, I mean, today a lot of customers use vector databases, just like back in the day, a lot of people put their, you know, their tabular data in just databases, OK. And they just use the structure of the database in order to, you know, take advantage of being able to query their their data. But they didn't really need to use a database. They just put it in a database. And then us three came along and then we introduced this way, you know, with with the help of open formats like Apache Parquet and being able to store that structure data in S3. That's kind of what we're doing with vectors right now, OK. And if you think about vectors, vectors are basically a bespoke, the data type. A vector at the end of the day is a very, very long list of numbers. And vectors have been around for a long time and they've been in vector databases for a while. But they really kind of took off in people's, you know, data worlds in the last couple of years with the rise of, as you said, the embedding models. OK. And so if you take a step back and you think about one of the great ironies of data, it is that you have to know your data to know your data, right? You have to know what your schema is. You have to know what the data types are. You have to know where it is. And as these data lakes become data oceans, you have this situation where it gets harder and harder to know what's in your data, right? And the beautiful thing about embeddings is that embedding models will understand your data so that you don't have to understand your data. And the format that these embedding models puts this semantic understanding of your data is in fact a vector. And so when we talk to customers and we, you know, they're so excited about how these embedding models are getting better and better, they want to apply more and more basically semantic understanding to their underlying data, whether it's unstructured or structured that they have in storage. And so they kind of want to store billions of vectors. Speaker 2 But but just to say when they want, you say they won't understand. Correct me if I'm with hypothetically, you have a bunch of text data or maybe some image data. And you're saying that a lot, a lot of people, customers, teams, they would like to write queries to say like, hey, can you find an image that looks like a puppy? Or can you find an article that contains this or this? And and embeddings are as we know are great for that. But then you need to actually create the embedding, build a system, etcetera. Right. Yeah. Speaker 3 And like exactly what you're saying. Like, I mean, if you think about what what vectors can do, if you think about all the data that a given company has, you know, your knowledge across your business or your knowledge across your life isn't organized into rows and columns like a database. It's in PDFs, it's in your phone, right? It's in audio customer care recordings, which capture the sentiment of how a customer actually feels about their interaction with you. It's whiteboards. By the end of this day, this whiteboard is totally filled up with ideas and it's in documents across dozens of systems. And so it's not that you don't have data, you have tons of data, but understanding what data you have across all of those different formats is a real problem. And it's one that AI models can help you with. And so the capabilities of those AI models have gotten so much better in the last 18 to 24 months, but it we needed a place to put billions of vectors, billions of, you know, the semantic understanding of relationships. And that's what we built S3 for. The state-of-the-art embedding models combined with the ability to have vectors across S 3 is like a really important part. And it's not a database. I mean it's the cost structure and scale of just S 3, but it's for vector storage. Speaker 2 And then do I understand that did you need to build new primitives to store this, like going down to the metal, figuring out exactly where we do this or did you build it on top of your existing, you know, like again existing primitives of all like BLOB storage, etcetera? Speaker 3 It's actually a new primitive and so you know, we had talked about S3 tables. S3 Tables is building on objects is those individual parquet files. At the end of the day, they're an object. Vector's totally different. So with vector, we built the new data structure, a new data type. And you know, it turns out that when you're building vectors, searching for the closest vector in a very high dimensional space, which is basically vector space. Speaker 2 Yes. Speaker 3 It's often really hard to find the nearest neighbor. And so you basically in a database, you have to essentially compare every vector in a database and that's often like super expensive. And So what we do in a stream is because we aren't storing all of our vectors in memory, we're storing it on our fleet of S3, very large fleet. We still need to provide a super low latency. And in our launch last week, you were getting about 100 milliseconds or less for a warm query to our vector space, which is actually pretty fast. It's not database fast, but it's pretty fast. And the way that we do that is we pre compute a bunch of, think of them as vector neighborhoods, OK. And so it's basically a cluster, a bunch of vectors that are clustered together in similarity, like, you know, a type of dog as an example. These vector neighborhoods, if you will, they're computed ahead of time offline. They're computed ahead of time asynchronously so that when you're doing your query, it's not going to impact your query performance. And then every time a new vector is inserted to S3, the vector gets added to one or more of these vector neighborhoods based on on where it's located. And so when you are executing a query on S3 vectors, there's a much smaller search that's done to find the nearest neighborhoods. And it's just the vectors in the vector neighborhoods that are loaded from S3 into a fast memory. That's where we apply the nearest neighbor algorithm and it can result in like really good sub 100 millisecond query times. And so you know, if you think about the scale for S3 will give you up to 2 billion vectors per index. You think about the scale of a three vector bucket, which is U to 20 trillion vectors, and you think about that combined with 100 milliseconds or less for warm query erformance. That just opens up what you can do with creating a semantic understanding of your data and how you can query it. Speaker 2 It sounds very interesting and also challenging to because you have to build this for scale from day one. I guess that's, that's one of the, I guess benefits and curses of working at S3 that everything that you launch, you need to prepare for what will be extreme data elsewhere, but here it's just Monday. Speaker 3 We have S3 service tenants as well and one of the tenants and one phrase that I use all the time and our engineers do too. His scale is to your advantage. So if you are an engineer and you think about that and you think about one of your tenets for anything you build is that scale must be to your advantage. It just changes how you design. It means that you can't actually build something where the bigger you get, the worse your performance gets or the worse some some attribute gets. It has to be constructed so that the bigger you get, the better your performance gets. The bigger S3 gets, the more de correlated the workloads are that run in S3. That is a great example of scales to your advantage. And so when we built vectors just like we built everything in S3, we ask ourself how can we build this such that scale is to our advantage? How can we build this such that 100 milliseconds or less is just the start of the performance that we're going after? And how can we make sure that the more vectors we have in storage, the better the traits of S3 for vector? Speaker 2 I have a different question about the limitations of S3. The 50 TB limit on AWS I read that the largest object you can store in S3 is 50 terabytes. Why is there a limit on the largest? I mean, I think we can imagine this will be through either multiple hard drives and so on. But why did you decide to have a a limit? You know, I'm just interested in more in the thought process of how the team comes up with like, OK, this will be the limit and This is why. Speaker 3 I mean, I think first of all, that limit of 50 terabytes is 10 times greater than what we launched with. We launched with five terabytes and now we're 50 terabytes and sometimes we sit and tell customers that and they go, what am I going to store? That's going to be 50 terabytes and we're like high resolution video, right. And so you know, if I think about. Speaker 2 Known customer. Speaker 3 Right. And so if you think about this sort of thing, you know, like if you think about, I don't know, size, size limits, generally speaking, we, we do try to optimize for certain patterns. And when you raise the size of an object by 10 times like we did, we're just optimizing for the performance and scale of the underlying systems. It's like we increase the scale of our batch operations by 10 times last week too. And the idea behind that is that the underlying systems we're just optimizing for distributions of work that are the new norm for how people are doing things. And we'll just keep on changing. We don't have too many limits to be honest, but we'll just keep on, you know, looking at what customers are doing across the distribution of workloads and seeing if there's something that that needs to be changed. The big thing for us, you know, again, we, we did have a lot of conversations with customers and they're like, really like, I don't have that many individual objects that are that big. But with the increase of cameras and phones and things like that, we are seeing more larger size objects and we just wanted them to be able to grow unfettered in S3. Speaker 2 And so how does S3 evolve and how has the road map changed? Because so far what I picked up is everything that you told me is saying, well, you know, our customers were doing this or that and you obviously hear you live and breed data. So you see the patterns, you see stats, you see the objects, you also talk with them. Is it only you talking with customers, seeing what's happening, what's what they're struggling with, what they're using more of and then deciding to improve that. May that be the limits? May that be figuring out we need a new data type because they're now building their own data types on on top of it? Or is is there also some some kind of more kind of all right, here's a vision, here's a. Speaker 1 Road map of what we'll do. Speaker 3 It's a great question. And in fact, one of the things that we talk about all the time is the coherency of S3, right? And so there's certain things that people always expect from S3. It's the traits of S3, it's the durability, availability attributes that we talked about. And so a fair amount of engineering goes on under the hood for that, OK. And it's a set of capabilities that, you know we may or may not have talked about today. In fact, if you think about I think back to 2020, I think we've launched over 1000 new capabilities since 2020 in S3. And some of them are what we think of as the 90% of the road map, which is what people ask for explicitly, OK. And so for example, you know, some of our our media customers want the bigger object size and so we delivered that. We have other customers that do a lot with batch operations, but then we have some things that we invent because, you know, we look at what customers are doing with the data and we ask ourselves how can we build that Vector kind of falls into that category for vector. When we looked at S3 and how S3 is evolving, we told ourselves like, look, you know, we can continue to make S3 the best repository for data on the planet. And we will, we will, we have engineers that come in every day working to make that. So, but there's this other element of how do you make sure that the data that you have is in fact usable? And how do you make sure that it's usable in a way that's, you know, industry standard like that iceberg layer on top of our tabular data. But it's usable because AI models have now gotten so good at embeddings that you can have AI give you a semantic understanding of your data. If only you had the cost point of putting billions of vectors into storage so you could actually understand and use your data in a different way. And so for us, a lot of it is kind of taking a step back and looking not just at what customers ask us for, but we want to remove the constraint of the cost of data, which is what we do in S3. And we want to remove the constraint of working with your data, which is what we do in S3 too. And when we can do both of those things, if we can make it possible that your data grows as your business needs it and you can tap into all the capabilities that you're getting with AI and how the world is changing for data, then, then we have a shape. We call it a product shape. Then we have a. Speaker 2 Product shape. What's the product shape? Speaker 3 It's sort of like an emerging, like when I think about S3, I think of it is almost like this living, breathing Organism where the shape of the product is evolving, but it's evolving with coherency around what you expect for the trace of S3. But it's evolving in a way that lets you steer into how you want to use data and how do you want to use data not just now, but in the future. And we will continue to evolve the product shape of S3 based on what you want to do with data. And so in a lot of ways we're sort of transcending the the boundaries of what object storage was or what a database traditionally was. Cuz now we have tabular formats, we have conditionals, and we're evolving into this new shape and it is ultimately uniquely S3. Speaker 2 It kind of sounds like you have all these micro services. It's kind of evolving, almost like a plant or a living Organism, no? Speaker 3 Yes, I I am in fact, a former Peace Corps volunteer from forestry. And so, you know, a lot of times I will go back to the natural world for my my metaphors. And yeah, I mean, S3 is this living, breathing repository of data that lets people do things with data that they never thought possible. Speaker 2 It's just interesting because I think as engineers, we don't often think relate the systems that we built with like a, a living organization. The simplicity principle When in fact, I mean, obviously there's code, but as as you said, there there's people, there's servers, there's failures that now happen at a, at a cadence you can humble. It's just you, you can probably predict how many hard drives are failing today. In fact, that at your scale already at which, again, maybe it's, do you think it's because of the scale when, when things become large enough, they start to have these characteristics? Because what, what I find fascinating talking to you is the way engineering works inside of S3 feels very different to how it works inside a smaller organization, your kind of startup, which again, does, you know, like terabytes of data or maybe even a few petabytes. But but that's kind of it. And you've seen some of these organizations. What, what changes that at, at this large scale? What do you think that makes it? It feels pretty different the the world that you and the S3 teams working. Speaker 3 It does, but you know, in order for us to sustain the traits of S3 and to evolve it over time, we have to constantly go back to simplification. We have a very complex system with all of our different micro services, but I kind of go back to those micro services have to do one or two things really well and we have to stay true to that. Otherwise, you know, the complexification of a distributed system, you know it's, it's unmaintainable over time. And for S3, this concept of, OK, there's a simple and S3 and the simple and S3 is a couple of things. One, it's a simplicity of the user model where not only do you have a simple API, but now you have the simplicity of using Sequel with S3 or you have the simplicity of being able to leverage these AI embedding models, which makes semantic understanding of your data so much easier than having to annotate whole metadata layer. And so that concept of simplicity is in the user model of S tree. But under the hood, if you are sit on any of our engineering meanings, you will hear our engineers talk about how do we make sure that we implement this capability with the greatest simplicity that we possibly can. Types of engineers working on S3 Speaking of which, what type of engineers do you typically hire to to work at S3? In terms of what kind of traits, potentially past experience do you look for? Speaker 3 Well, we hire all kinds of engineers. You know, we have a lot of engineers on S3 who are early career, they're straight out of school or they're at a, you know, undergrad or Graduate School. And like I said, we have like a ton of engineers who have been on S3 for a long time and everything in between. I think there's a really strong element in our teams that work on data around ownership. It's a, it's, you know, people feel this like personal sense of commitment. I feel it. I feel it every day I come in where I feel a personal sense of commitment to your bite, to the preservation of your bite, to the usefulness of your bite, to the ability for you to think about what your application does next and not the types of storage that you need or how you grow it. And that deep sense of ownership and that deep sense of commitment is a very, very common thread across our data teams because we know that at the end of the day, every modern business is a data business. And everything that people are trying to do with traditional systems, AI, whatever is based on your data as shaping the core of your application experience. And so that data is our responsibility and we feel it very deeply. Speaker 2 And what would your advice be to let's say mid career software engineer, someone who has a few years experience working at at different places, who would who is actually after listening to this gets really enthusiastic. And besides like one day I'd love to work on a a deep strong infrastructure team like S3 or like let's say, like more experienced folks. What are experiences, active activities that you might look for that that might help you consider these folks more? Speaker 3 There's a, a strong value and relentless curiosity. OK. And you know, I talked a little bit about coloring within the lines and how when you work on S3 or a large scale distribution system which continues to reinvent what storage means, you're not really coloring within the lines. You're just kind of looking. You're taking a step back and you're saying, you know, I, I will draw what the lines are today and I will know that I might have to rub those out and draw new lines in the future for wherever things go. And so, you know, I have 3 kids who are in university. I have two kids in university and one in grad school. And that is one thing that I, you know, I think is really important is to always take a step back. Take a look at the latest research. And some of the papers that I'll share with you are around how we, you know, we either took formal methods and we brought them into storage systems, right? Or we thought thought about failure in a different way, where that that creativity, that relentless curiosity and that creativity with engineering, I don't think you can go wrong with that. I think the next generation of software, no matter if it's built in a street or elsewhere, it is all driven by the creativity of the engineering mind. And it is in all of us. We just have to kind of unlock it and unleash it. And we will bring we'll build amazing things like a street. Speaker 2 And I also love that with S3, not only has S3 created something that did not exist and I think like it just was unimaginable because it didn't exist, but now I'm hearing startups that are building on top of S3. I think Turbo Puffer is a good example. You know, they're bit of innovation because now they have a base layer and I feel there's different levels of innovation. You decide where you want to innovate at the very lowest level, 1 level higher and and so on and you just use the right primitives, right. In your case, this is just doing hardware and storage better than anyone. In the other layers it will be using the right primitives better than anyone. Speaker 3 Yeah, it's very exciting for us to see so many different types of infrastructure built on Astorino. Speaker 2 And as closing, what is a book or a paper that that you would recommend a reading that that you enjoyed and and why? Closing recommendations I read a lot of different papers. I am fascinated by how quickly the evolution of embedding models are coming along now. And in particular, a field of science that I'm quite interested in is the multimodal embedding model, because as you know, the world that we experience is multimodal and therefore the understanding that we have of data should be multimodal as well. And so there's this whole field of science that's a that's emerging quite rapidly around multimodal embedding models. And so I've, that is something that I encourage people who are working in the field of data to, to look at because I think that is the next generation of data. If you think about, you know, the next World of data lakes, I think it's actually going to be on metadata. It's going to be on the semantic understanding of our data and understanding how that is created through vectors and how it's being searched and done across multiple modalities. I think is is an important area of both research and advancement. And so that's what I would encourage people to look at in the world of data. I think vector is going to be quite, quite big, particularly at the price point that we've introduced for S3 storage for vectors. And I'm excited about it. I think, you know, I think we're just getting started with data and an understanding of our data and I can't wait to see what comes next. Speaker 2 Amazing, and do you have any book recommendations? Speaker 3 I will give you a book recommendation just in case your readers are interested. It won't be in the field of computer science. It will be about the evolution of the ecology around us and supporting the bees, the native bees and insects around us. So a tiny bit farther afield, but I'll give you a book recommendation and if your your readers are interested, they can they can take a look at how to Support the Bees of the Planet. Speaker 2 Well, my line, thank you very much. This was fascinating and and very interesting to get a peek into this massive world of scale of data and, and respecting the Biden and treating it and making sure that it's durable. Speaker 3 It was great talking to you and thank you to both yourself. I know you're a fan of S3 and to all of your listeners who use S3. We quite literally wouldn't be able to do what we do without the feedback and the encouragement from everybody who uses S3 today. So thank you for that. Speaker 1 Just wow. I always suspect that there's a lot of complexity behind a system like S3, but I just did not realize the scale of it. Whenever I worked on my systems with even hundreds of virtual machines, failure of one machine was a rare event and not something that we really counted on. During my conversation with my launch, she casually mentioned that several machines have failed during our conversation, which is something that the S stream knows and prepares for and treats it like an everyday event. I personally really liked how AWS has two conflicting tenants heavily used on the S3 team. Speaker 2 Respect what came before. Speaker 1 And technically fearless for such a massive system. It will be easy to say let's move conservatively because of how many companies depend on us, but if they did so S3 would fall behind. Finally, I'm still now that AW has put strong consistency in place, rolled it out to all customers and did not increase pricing nor did they increase latency. At S3 scale, this is an absolutely next level enduring achievement. In fact it was probably one of the lesser known enduring feats of the decade. I hope you found the episode as fascinating as I did. If you'd like to learn more about Amazon and AWS, check out the exclusive deep dive I did with AWS incident management team on how they handle outages in the show notes below in the Pragmatic Engineer. I also did other deep dives about Amazon and AWS. They are also LinkedIn the show notes. If you enjoyed this podcast, please do subscribe on your favorite podcast platform and on YouTube. A special thank you if you also leave a rating on the show. Thanks and see you in the next one.

Podcast Summary

Key Points:

  1. S3 stores over 500 trillion objects, hundreds of exabytes of data, and processes over a quadrillion requests annually, running on tens of millions of hard drives across millions of servers in 120 availability zones and 38 regions.
  2. S3 originally launched in 2006 with eventual consistency, optimized for durability and availability, but later transitioned to strong consistency to support modern data lakes and analytics.
  3. The service evolved from storing unstructured data (PDFs, images) to supporting tabular data via Parquet and Iceberg, leading to the introduction of S3 Tables and S3 Vectors in 202
  4. Key primitives include PUT, GET, DELETE, LIST, and COPY, with recent additions like conditional operations (e.g., put-if-absent) to enhance developer control.
  5. AWS keeps S3 prices low through continuous cost reductions, intelligent tiering (automatic discounts for infrequently accessed data), and Glacier (low-cost archive storage at $0.01/GB/month), driven by engineering efficiencies across the entire stack.

Summary:

S3 is the world’s largest cloud storage service, holding over 500 trillion objects and hundreds of exabytes of data, with tens of millions of hard drives across millions of servers in 120 availability zones and 38 regions. Originally launched in 2006 with eventual consistency, S3 was designed for unstructured data like PDFs and images, optimized for durability and availability. Over time, customer needs shifted to tabular data analytics, leading to the adoption of Parquet and Iceberg formats, and the introduction of S3 Tables and S3 Vectors in 2024.

Key operations remain simple: PUT and GET, with added conditionals for finer control. 01/GB/month). This is achieved by optimizing every layer—from hardware and data centers to software—allowing customers to grow their data economically for analytics, AI, and other uses.

S3’s mission is to provide the best storage service globally, enabling customers to store and use data without worrying about costs or constraints.

FAQs

When you stored data, S3 immediately confirmed the write but the data might not appear in list operations right away. This was acceptable for e-commerce because a human could simply refresh a page to see the updated content.

S3 engineers focus on concepts like correlated failure (multiple components failing from shared dependencies), crash consistency (preserving data integrity after crashes), and failure allowances (designing for expected failure rates). These principles help maintain reliability at extreme scale.

S3 Tables are Iceberg-compatible tabular data managed as parquet files, while S3 Vectors are long strings of numbers for AI/ML workloads. Both are new native primitives stored in S3 alongside traditional objects.

These conditionals let developers control operations based on application behavior, such as only writing data if it doesn't already exist or deleting only if a specific condition is met, reducing the need for custom application logic.

Intelligent tiering monitors access patterns and automatically moves infrequently accessed data to cheaper storage tiers, offering up to 40% discounts without requiring manual configuration.

Glacier uses trade-offs between cost and access speed, leveraging deep engineering across hardware, data centers, and software to drive down per-byte costs while accepting retrieval delays of hours.

Chat with AI

Loading...

Pro features

Go deeper with this episode

Unlock creator-grade tools that turn any transcript into show notes and subtitle files.