S3 Flashcards
How are files stored in S3?
Buckets
In S3, files are stored in buckets. Buckets are similar to folders on your computer.
How many files can be stored in S3 Buckets?
There are no limits on the number of files you can store in a bucket. Buckets also provide additional features such as version control and policies.
How many storage types are in S3?
S3 has six storage classes based on general use cases.
S3 standard
S3 standard IA
Zone IA
Intelligent tiering
Glacier
Glacier Deep Archive
S3 Standard
S3 Standard is the default storage plan you will be put into when you start using S3. The standard storage class has excellent performance, durability, and availability.
S3 Standard is best if you have data that you have to access frequently.
S3 Infrequent Access (S3-IA)
S3 Infrequent Access (S3-IA)
S3 Infrequent Access offers a lower price for data compared to the standard plan. You can use S3-IA for data that you need less often.
S3-IA is great for use cases such as backups and disaster recovery.
Glacier
Glacier
Glacier is the least expensive storage option in S3 but is designed for archival storage. You cannot fetch data from Glacier as fast as Standard or S3-IA, but it is a great option for long term data archival.
Storage Lifecycle Policy
In addition to choosing one of these three storage classes, you can also set lifecycle policies in S3. This means that you can schedule files to be moved automatically to S3-IA or Glacier after a certain period of time.
S3 Benefits
It’s Affordable
It’s Scalable
It’s Secure
It Has Versioning
It’s Durable
It’s Affordable
It’s Affordable
S3 is cheap. I mean super cheap compared to other storage solutions. And with S3, you only pay for what you use. There are no upfront costs, no setup. It’s just plug and play.
In addition to affordable pricing, S3 offers a Free tier. This free tier comes with 5GB of storage space, 20,000 GET Requests, 2,000 PUT, COPY, POST, or LIST Requests and 15GB of Data Transfer. The free tier is available every month for the first year.
With S3 you can avoid paying for space or bandwidth you might not even need.
It’s Scalable
It’s Scalable
S3 scales with your application. Since you pay only for that you use, there is no limit to the data you can store in S3.
This is helpful during multiple scenarios, especially during an unexpected surge in user growth. You don’t have to buy extra space. S3 has you covered.
It’s Secure
It’s Secure
One of the many reasons companies prefer S3 is its inclination towards security. While you have to secure custom server setups, S3 is secure by default.
This does not mean you cannot store publicly accessible information in S3. S3 locks up all your data with high security unless you explicitly configure not to.
S3 also maintains compliance programs, such as PCI-DSS, HIPAA/HITECH, FedRAMP, EU Data Protection Directive, and FISMA, to help you meet your industry’s regulatory requirements.
It Has Versioning
It Has Versioning
Versioning means keeping multiple copies of a file and tracking its changes over time. This is useful, especially when you handle sensitive data.
You can also retrieve accidentally deleted files when you enable versioning with S3.
However, if you enable versioning, you are storing multiple copies of the same document. This can have an effect on pricing as well as read/write requests you make.
So just take that into account while integrating versioning for your application.
Versioning is disabled by default for S3 but you can enable versioning using the AWS Console.
It’s Durable
It’s Durable
Data durability is an underrated feature of S3. Given how common data loss is among companies, data durability is a core factor to consider when building enterprise software.
S3 provides a highly durable storage infrastructure. S3 redundantly stores data in multiple facilities, making you data safe in the event of a system failure. S3 also performs regular data integrity checks to make sure your data is intact.
S3 offers 99.999999999% durability (called the 9s durability) and 99.99% availability of objects over a given year.
S3 Use Cases - Static Web Hosting
Static Website Hosting
You can use S3 as a static website hosting platform. The difference between static and dynamic websites is that dynamic websites receive and process user input. Static websites are used only for displaying information.
With the advent of Single Page Applications, you can host a complete web app on S3, often free of charge.
Frameworks like React and Angular have made user input processing happen within the browser. You can build a SPA that listens to third party APIs and host it within S3.
S3 also has great support for routing, so you can use your own custom domain as well.
I recently wrote an article on hosting a React web app using S3 and you can find the article here.
S3 Use Cases - Analytics
Analytics
You can run queries on your S3 data without moving your data to an analytics platform. This makes S3 a great use case for building powerful analytics applications.
S3 offers multiple options including S3 Select, Amazon Athena, and Amazon Redshift Spectrum. You can also combine these with AWS Lambda to perform data processing on the fly.
S3 Use Cases - File Sharing
File Sharing
Amazon S3 can be also used as a cheap file sharing solution. Like I mentioned earlier in the article, the famous file sharing service Dropbox was first built on top of S3.
With flexible security policies, you can configure your S3 buckets with custom permissions for different customers. S3 also offers transfer acceleration to speed up large file transfers across longer distances.
S3 Summary
Summary
Amazon S3 is a great tool to work with for your web or mobile application storage requirements. With on-demand pricing and scalability at its core, S3 has been the favored cloud storage solution for small and large businesses alike.
Companies from Netflix to Pinterest trust S3 with their data, thanks to the 99.999999999% data durability promise from Amazon.
You can also use Amazon S3 as a personal storage solution or host your next project via static site hosting. In a nutshell, S3 is a great multi-purpose storage solution catering to a wide range of use cases.
What type of storage is S3?
Object storage