Latest / Appropriate Proper Reasonable / 136: AWS Storage
Transcript
- 0:00Welcome to the deep dive. So we often talk about
- 0:03compute as being, you know, the engine of the
- 0:06cloud. But if compute's the engine, then storage.
- 0:09Well, storage is everything else. It's the fuel
- 0:11tank, it's the cargo hold. Your data is absolutely
- 0:14vital. And knowing where to put it, how to keep
- 0:17it safe, and maybe most importantly, how it affects
- 0:19your bill. That's crucial. Get it wrong, and
- 0:22you're really building on shaky ground. Absolutely
- 0:26foundational. And look, for anyone who remembers
- 0:28what it was like before the cloud, storage was
- 0:31a huge headache. Oh, yeah. You're talking big,
- 0:33expensive boxes, SANs, storage area networks,
- 0:37NAS devices. Right. You had to spend a ton of
- 0:39money upfront guessing. literally guessing how
- 0:42much space you'd need years down the line. Which
- 0:44never worked out right. Either you bought way
- 0:46too much and half of it sat there gathering dust
- 0:48costing a fortune or inevitably you ran out.
- 0:51Usually at the worst possible time like 2 a .m.
- 0:53on a Monday then it's panic stations trying to
- 0:56get new discs shipped overnight. Exactly and
- 0:58that whole nightmare scenario. That's what AWS
- 1:01storage just completely changed. The core idea
- 1:03is elasticity, global reach and crucially pay
- 1:08as you go. No more crystal ball gazing for capacity.
- 1:12Okay, so that's our goal today then we want to
- 1:15give you the blueprint essentially We're gonna
- 1:16decode the whole landscape of AWS storage s3
- 1:20EBS EFS all those different tools The aim is
- 1:24to give you that clear practical knowledge. You
- 1:26can use right away Let's uh, let's start unpacking
- 1:29this blueprint. Sounds good But before we even
- 1:32name a single AWS service, like S3 or anything
- 1:35else, we really need to get our heads around
- 1:37the three basic ways data gets stored. Everything
- 1:39else fits into one of these buckets, so to speak.
- 1:42OK, three fundamental types. Let's walk through
- 1:44them. First up. First is object storage. Now,
- 1:47this one might feel a bit different from your
- 1:49laptop's hard drive. How so? Imagine a massive
- 1:51valley parking service, but for your data. You
- 1:54give them your file. It could be a photo, a video,
- 1:56a backup file, whatever. And they give you back
- 1:58a unique ID, a ticket. You don't worry about
- 2:01folders inside folders. It's a flat structure.
- 2:04Your object is the file plus some metadata, and
- 2:08you use that ID, that ticket, to get it back.
- 2:10And because it's flat, that makes it Super scalable,
- 2:13I guess. Good for just huge amounts of unstructured
- 2:16data, like all those photos and videos. Exactly.
- 2:19Massive scale. Yeah. Perfect for unstructured
- 2:21stuff. So that's object storage. But OK, what
- 2:25if you need storage that an operating system
- 2:26can actually use, like to boot from or run a
- 2:30database directly on? Right. Not just storing
- 2:32files to download later. That sounds different.
- 2:34That's where block storage comes in. That's block
- 2:36storage. Totally different concept. Think of
- 2:38it like a huge grid of equally sized boxes. blocks,
- 2:42each with a number. When you attach this kind
- 2:44of storage to a server, the operating system
- 2:47sees it like a raw, unformatted hard drive, just
- 2:50a bunch of blocks it can use. Ah, so the OS manages
- 2:53the file system on top of those blocks itself.
- 2:56Precisely. And that direct block access gives
- 2:58you the really high speed and low latency you
- 3:00need for things like databases or the operating
- 3:03system drive itself. Got it. OK, so object for
- 3:07massive scale, web access. Block for all performance
- 3:11OS level access. What's the third flavor? The
- 3:14third one is probably the most familiar file
- 3:16storage This is your classic folders and subfolders
- 3:19hierarchy like the shared drive on a network
- 3:22exactly like a shared network drive The key thing
- 3:25here the big difference from block storage Especially
- 3:27is that multiple servers multiple computers can
- 3:30connect to the same file storage and see the
- 3:33same files at the same time It's designed for
- 3:35sharing. Okay, the shared filing cabinet analogy
- 3:38makes sense object block file The basics. Right.
- 3:41Those are the building blocks. No pun intended.
- 3:43Huh. OK. So let's dive into the AWS services
- 3:46themselves. And we have to start with the biggest
- 3:48one, right? The Titan. You have to start with
- 3:50S3, Amazon Simple Storage Service. It's just
- 3:53fundamental to so much on AWS. It's their massive,
- 3:57super durable, super scalable object storage
- 3:59service. The magic, infinitely deep closet you
- 4:02called it earlier. That's a good way to think
- 4:04about it, yeah. Whether you've got tiny files
- 4:06or petabytes of data, S3 just handles it. Application
- 4:10code, documents, backups, website assets, the
- 4:13foundation for huge data lakes. It often ends
- 4:17up in S3. And a couple of key terms people need
- 4:19to know. Your data goes into buckets. And these
- 4:22bucket names... They have to be unique across
- 4:25the entire world of AWS, right? Globally unique,
- 4:28yeah, that's important. It really underscores
- 4:30that S3 is a global service, not tied to one
- 4:33region in the same way some other services are.
- 4:36And inside the buckets you have your objects,
- 4:38which are the actual files plus their metadata.
- 4:41But the headline feature, the one everyone talks
- 4:42about, is the durability. Oh yeah, the durability.
- 4:46AWS guarantees 99 .99999999 % durability. That's
- 4:5211 nines. 11 nines. It sounds almost unbelievable.
- 4:55What does that actually mean in practice? It
- 4:57means, statistically speaking, if you stored,
- 4:59say, 10 million files in S3, you could expect
- 5:01to maybe lose one single file over the course
- 5:04of 10 ,000 years. Wow. OK. That's pretty durable.
- 5:08How do they even achieve that? By automatically
- 5:10making copies of your data and storing them across
- 5:13multiple separate physical data centers, what
- 5:16AWS calls availability zones within a region.
- 5:19It's redundancy built in at a massive scale.
- 5:22Which explains why it's the default choice for
- 5:24so many critical things. You mentioned backups,
- 5:27disaster recovery, data archiving, even hosting
- 5:30static websites directly from S3. Absolutely.
- 5:33It's incredibly versatile because of that scale
- 5:35and durability. OK, but within S3, it's not just
- 5:37one size fits all, is it? You mentioned cost
- 5:40being a factor. How do we manage that? Right,
- 5:43so because S3 holds everything from data you
- 5:45need instantly multiple times a second to archives
- 5:48you might look at once a decade, they created
- 5:51S3 storage classes. This is all about balancing
- 5:53cost versus access time and frequency. And this
- 5:57is a really key area for anyone designing systems
- 6:00or even taking an AWS exam, I imagine, getting
- 6:03the storage class right. Definitely. It can have
- 6:05a huge impact on your bill. So let's start with
- 6:07the default, the kind of main one. That's S3
- 6:09standard. This is for frequently accessed data,
- 6:11stuff you need fast. It gives you low latency,
- 6:14high throughput. It has the highest storage cost
- 6:16per gigabyte. But accessing the data is cheap
- 6:19and instant. Right, website assets, active application
- 6:22data. Right, the prime shelf for your most active
- 6:25data. But what if my access patterns are, well,
- 6:28unpredictable? Or they change over time? I don't
- 6:31want to be constantly moving files between tiers
- 6:34myself. Ah, for that, AWS is something quite
- 6:37clever. S3 Intelligent Tiering. It's kind of
- 6:39the set it and forget it. How does that work?
- 6:42It uses machine learning, basically algorithms,
- 6:44to watch how you access each object. If you stop
- 6:46accessing something frequently, it automatically
- 6:48moves it to a cheaper infrequent access tier
- 6:51behind the scenes. If you access it again, it
- 6:53moves it back. You get automatic cost savings
- 6:55without lifting a finger. That sounds pretty
- 6:57useful. OK, so that handles automatic optimization.
- 7:01What about the tiers specifically designed for
- 7:03data you don't access often, the infrequent access
- 7:07tiers? Right, so the main one there is S3 standard
- 7:10and frequent access, or S3 standard IA. The storage
- 7:14cost per gigabyte per month is lower than S3
- 7:17standard. Cheaper to store. Okay, what's the
- 7:19catch? The catch is the retrieval fee. You pay
- 7:22a per gigabyte fee every time you access or retrieve
- 7:24data. from Standard IA. Ah, okay, so if I store
- 7:27archives there cheaply but then suddenly need
- 7:30to download terabytes of it, that could get expensive
- 7:33fast. It could. You need to be mindful. Standard
- 7:35IAs is great for things like older backups or
- 7:38data you need long -term attention for, but don't
- 7:40expect to access regularly. But crucially, when
- 7:42you do need it, access is still fast. Just like
- 7:45S3 standard, you just pay for that retrieval.
- 7:47Got it. And there's an even cheaper IA option,
- 7:49isn't there? S3 one zone IA. What's the trade
- 7:52off there? It sounds less resilient. It is less
- 7:55resilient. That's the key trade off. One zone
- 7:57means exactly that. Your data is stored in only
- 8:00a single availability zone within a region, unlike
- 8:02the other S3 classes that spread it across multiple
- 8:05AZs. So if that specific AZ has an issue, power
- 8:08outage, flood, whatever that data is unavailable,
- 8:11and potentially lost if the AZ is destroyed.
- 8:14Unavailable during the outage, yes. And potentially
- 8:16lost in a disaster scenario affecting that single
- 8:19AZ, although that's rare. So it's much cheaper
- 8:21storage, the cheapest non -archived tier, but
- 8:24you accept lower durability. It's really only
- 8:26suitable for data you can easily recreate if
- 8:28lost, like maybe thumbnail images generated from
- 8:31original stored elsewhere, or logs you also have
- 8:34copies of. Not for primary data. OK, that's a
- 8:36critical distinction. So standard for frequent,
- 8:39intelligent tiering for unknown, standard IA
- 8:42for infrequent but fast retrieval needed, one
- 8:44zone IA for recreatable infrequent data. What
- 8:48about really cold storage? The deep freeze. Now
- 8:51we're talking about the archive tiers, which
- 8:53used to be mainly under the Glacier brand name.
- 8:55These are for maximum cost savings on data you
- 8:58rarely access. Glacier. There's a glacier instant
- 9:00retrieval. This one's interesting. It offers
- 9:02the lowest cost storage for data that's rarely
- 9:04accessed. But when you do need it, you need it
- 9:07back in milliseconds, just like S3 standard or
- 9:10IA. So archive economics, but immediate access.
- 9:13Right, bridging that gap. Then the more traditional
- 9:15glacier. Yeah, Glacier Flexible Retrieval. This
- 9:18is the classic archive option. Very cheap to
- 9:20store, but retrieval isn't instant. It can take
- 9:22anywhere from minutes to several hours to get
- 9:24your data back, depending on what retrieval option
- 9:26you pick. Minutes to hours, okay. Definitely
- 9:29for archives. And the absolute coldest, cheapest
- 9:32option. That's Glacier Deep Archive. Rock bottom
- 9:35storage costs. We're talking fractions of a cent
- 9:39per gigabyte per month, but the retrieval time
- 9:41reflects that. You're looking at 12 to 48 hours
- 9:44to get your data back. 12 to 48 hours, okay.
- 9:47This is for data you might literally access once
- 9:49every few years. Think regulatory archives that
- 9:52you have to keep for seven years but probably
- 9:54never look at, or maybe the final backup before
- 9:57decommissioning a system entirely. Long -term,
- 10:00deep -free storage. Wow. Okay, that's a whole
- 10:03spectrum just within S3. Standard, intelligent
- 10:05tiering, standard IA, one -zone IA, Glacier Instant,
- 10:08Glacier Flexible, Glacier Deep Archive. Lots
- 10:10to choose from based on access patterns and cost.
- 10:12Exactly. Matching the class to the need is key.
- 10:15All right. We've spent a lot of time on S3, which
- 10:17makes sense given its importance, but that's
- 10:20mostly storage accessed over the internet, right?
- 10:22Object storage. Let's shift gears. What about
- 10:27storage attached directly to our virtual servers,
- 10:30our EC2 instances, inside the virtual data center?
- 10:34Right. Now we're moving away from object storage
- 10:36and primarily into block and file storage territory,
- 10:39directly connected to compute. And the main player
- 10:41for block storage attached to EC2 is? That would
- 10:44be Amazon EBS, the elastic block store. Remember
- 10:47our definition, high -performance block storage.
- 10:50EBS provides persistent block -level storage
- 10:52volumes for use with EC2 instances. Think of
- 10:55it as the virtual hard drive for your virtual
- 10:57server. virtual hard drive. But there's a really
- 10:59important limitation or characteristic people
- 11:01need to grasp about EBS. Isn't there something
- 11:03about location? Absolutely critical. An EBS volume
- 11:07exists in and is bound to a single availability
- 11:10zone, AZ. Just one AZ? Just one. You can only
- 11:13attach an EBS volume to an EC2 instance that
- 11:16is running that exact same availability zone.
- 11:18It cannot cross AZ boundaries natively. That's
- 11:21huge for designing resilient applications, right?
- 11:23If that whole AZ has a problem, your EC2 instance
- 11:27goes down and the EBS volume attached to it is
- 11:30also unavailable. Precisely. High availability
- 11:32for applications using EBS often involves strategies
- 11:35like replicating data across instances in different
- 11:38AZs or using those EBS snapshots. Ah, yes, snapshots.
- 11:42How do they work? Are they full backups every
- 11:44time? They're point -in -time backups of your
- 11:47EBS volume. And the clever part is they are incremental.
- 11:50After the first full snapshot, subsequent snapshots
- 11:53only save the blocks that have changed since
- 11:54the last one, which saves storage space and time.
- 11:57And where do these snapshots get stored for durability?
- 12:00They get stored under the hood in S3. Ah. So
- 12:03AWS uses the incredible durability of S3, those
- 12:0611 nines, as the backend to make EBS snapshots
- 12:09reliable. That's smart. It's a very smart architecture,
- 12:11yeah. So typical use cases for EBS are pretty
- 12:14clear. The boot volume for your EC2 instance
- 12:16where the operating system lives, or as the data
- 12:19drive for databases like SQL Server, MySQL, PostgreSQL,
- 12:22or NoSQL databases running directly on a single
- 12:25EC2 instance needing that low latency block access.
- 12:28OK, so EBS high performance block storage for
- 12:31a single EC2 instance in a single AZ. What if
- 12:34I need that shared network drive experience we
- 12:36talked about earlier? Multiple EC2 instances
- 12:39needing to access the same file simultaneously.
- 12:42Now you're talking about Amazon EFS, the Elastic
- 12:45File System. This is AWS's fully managed, scalable
- 12:49file storage service. And the key differentiator
- 12:51again? The key is that multiple EC2 instances
- 12:54can connect to the same EFS file system concurrently.
- 12:57That's the fundamental difference from EBS. So
- 13:00perfect for things like a fleet of web servers
- 13:02that all need access to the same set of website
- 13:05files or shared application assets. Exactly.
- 13:07Content management systems like WordPress or
- 13:09Drupal running across multiple web servers, share
- 13:12code repositories, home directories for users
- 13:14logging into multiple machines. EFS fits that
- 13:17perfectly. And how does it handle things like
- 13:19scaling and availability? Well, it's elastic,
- 13:21so it grows and shrinks automatically as you
- 13:23add or remove files. You know, pre -provision
- 13:25storage. And importantly, a regional service.
- 13:28It automatically stores your data across multiple
- 13:31availability zones within a region for high durability
- 13:34and availability. Okay, so unlike EBS, which
- 13:36is AZ specific, EFS spans multiple AZs within
- 13:40a region. That's a big plus for availability.
- 13:43Any specific protocols or OS limitations? It
- 13:46primarily uses the NFSv4 protocol, network file
- 13:50system version 4. which means it's primarily
- 13:52designed for and works best with Linux based
- 13:55EC2 instances. While there are ways to connect
- 13:57from Windows, it's not the primary use case.
- 14:00Got it. So EFS shared elastic regional file storage,
- 14:04mainly for Linux workloads via NFS. You got it.
- 14:06Okay, we've covered the big three. S3 for object,
- 14:09EBS for block, EFS for shared file. Are there
- 14:12other more specialized storage services we should
- 14:14touch on? Maybe for specific workloads or hybrid
- 14:17setups? Yeah, there are a couple more worth knowing
- 14:19about, especially for bridging on -premises worlds
- 14:21or handling specific application needs. Let's
- 14:23hear about the bridge first. Connecting existing
- 14:25data centers to AWS storage. That would be the
- 14:28AWS storage gateway. Think of it as a hybrid
- 14:32cloud storage appliance, like a magic portal.
- 14:34A magic portal? Okay, intriguing. You typically
- 14:37deploy a virtual machine, or sometimes a hardware
- 14:40appliance, in your own data center. This gateway
- 14:43then connects securely back to AWS and makes
- 14:46cloud storage like S3 or even EBS volumes appear
- 14:49as if it's local storage within your data center.
- 14:52Ah, so my old backup software running on my local
- 14:54server could think it's writing to a local tape
- 14:57library or a network share. Exactly. But it's
- 15:00actually sending the data through the gateway
- 15:01up to S3 for durable, scalable cloud storage.
- 15:06It lets you integrate cloud storage without having
- 15:08to rewrite your existing on -premises applications
- 15:10or workflows. It smooths that transition. That
- 15:13sounds incredibly useful for migration and backup
- 15:16scenarios. OK, what about specialized file systems?
- 15:19That's where the Amazon FSX family comes in.
- 15:21FSX stands for File System X, basically. It provides
- 15:24fully managed third -party file systems optimized
- 15:26for specific needs. Like what kind of specific
- 15:29needs? So the two big ones are FSX for Windows
- 15:31File Server and FSX for Lustre. OK, FSX for Windows
- 15:35sounds pretty self -explanatory. It is. If you're
- 15:38migrating Windows applications to AWS, and those
- 15:41applications rely on a shared Windows file server
- 15:43using the standard SMB protocol and Windows NTFS
- 15:47permissions, FSx for Windows provides exactly
- 15:50that, fully managed. It makes lifting and shifting
- 15:53those apps much easier. Gotcha. So if my app
- 15:56needs file super share, FSx for Windows can provide
- 15:59that file super share in the cloud. Precisely.
- 16:02And then there's FSx for Lustre. Lustre. Never
- 16:04heard of it. Lustre is a different beast altogether.
- 16:07It's an open source parallel file system designed
- 16:09for extreme speed and scale. Think massive throughput.
- 16:12Parallel file system. What kind of workloads
- 16:14need that? We're talking high -performance computing,
- 16:17HPC, scientific simulations, genomic analysis,
- 16:20financial modeling, also heavy -duty machine
- 16:22learning training, or big media workloads like
- 16:25rendering 4K or 8K video. When you need to process
- 16:28huge data sets across many compute nodes really,
- 16:31really fast, FSX or Lustre is often the answer.
- 16:34It's built for speed. OK, so FSx for Windows
- 16:37handles the specific needs of Windows shared
- 16:39file systems, and FSx for Lustre handles the
- 16:42extreme performance needs of HPC and similar
- 16:45workloads. That's the gist of it. Specialized
- 16:47tools for specialized jobs. Wow. OK, that was
- 16:50a whirlwind tour through the AWS storage universe.
- 16:53S3, EBS, EFS, Storage Gateway, FSx. Quite a lot
- 16:58to take in. It is a broad portfolio for sure.
- 17:00But hopefully we've managed to demystify it a
- 17:02bit. Let's try and boil it down to that quick
- 17:04blueprint for success. When you're faced with
- 17:07a storage requirement, how do you quickly decide?
- 17:10OK, the quick decision tree. First, think about
- 17:12the data type and access pattern. Is it unstructured
- 17:15data photos, videos, backups, logs that needs
- 17:18to scale massively and be accessible potentially
- 17:21from anywhere, maybe over the web? If yes. That
- 17:24screams S3. Start there. Think about the right
- 17:26S3 storage class for cost and access speed. Okay.
- 17:30What if it's not unstructured files, but you
- 17:32need a high -performance virtual hard drive for
- 17:34just one specific EC2 instance, like for its
- 17:37operating system or a database running on that
- 17:39instance? That's EBS. Remember, it's tied to
- 17:42a single instance in a single AZ. Right. And
- 17:45if you need that shared drive experience... multiple
- 17:48servers, probably Linux, needing to access and
- 17:51modify the same set of files concurrently. That's
- 17:54your queue for EFS, Shared Elastic Regional File
- 17:58Storage. And then the special cases. Migrating
- 18:01a Windows app that needs a traditional Windows
- 18:04file share. Look at FSx for Windows file server.
- 18:06And if the requirement is just absolutely blistering
- 18:10speed for something like HPC or massive video
- 18:13rendering, then FSX for Lustre comes into play.
- 18:15S3, EBS, EFS. Those are the main three pillars
- 18:18to get right. Absolutely. And maybe if we tie
- 18:21this back to where we started with durability.
- 18:23Remember, S3 is 11 nines. That comes from AWS
- 18:26managing the complexity of replicating data across
- 18:29multiple physical locations, multiple availability
- 18:32zones. They abstract away the hardware failure
- 18:34for you at that level. Which is a huge shift
- 18:36from the old days of managing your own ASAN,
- 18:38right? Where one device failure could be catastrophic.
- 18:40A massive shift. So maybe here's a final thought
- 18:43for you, the listener, to ponder based on that.
- 18:45If AWS provides that incredible 11 nines of physical
- 18:50data durability with a service like S3, how does
- 18:53that change how you, as an application developer
- 18:56or architect, should think about data safety?
- 18:59Do you still need to build all the same complex
- 19:01application level checks and redundancy for data
- 19:04loss that you might have done 10 15 years ago,
- 19:06or has the cloud platform itself fundamentally
- 19:09shifted some of that responsibility? Where does
- 19:11the line sit now? Something to think about for
- 19:13your next project. Definitely something to consider.
- 19:16The landscape has changed. Indeed it has. Thanks
- 19:18for sharing all that insight today. My pleasure.
- 19:20Until next time. Keep diving deep.