s3 aws

This article will provide an in-depth introduction to AWS S3 — the secure, scalable, and super cheap storage service from Amazon Web Services.

本文将深入介绍AWS S3-来自Amazon Web Services的安全,可扩展和超便宜的存储服务。

If you have ever worked as a developer, you have likely come across file storage use cases. From simple images to large videos, uploading, storing, and accessing those files when you need them is always tricky.

如果您曾经担任过开发人员,则可能会遇到文件存储用例。 从简单的图像到大型视频,在需要时上传,存储和访问这些文件总是很棘手。

The usual answer to file storage is to keep them on the same server where you host your web applications. But with the advent of serverless architectures and single-page applications, storing files on the same server is not a good idea.

文件存储的通常答案是将它们保存在承载Web应用程序的服务器上。 但是随着无服务器架构和单页面应用程序的出现,将文件存储在同一服务器上并不是一个好主意。

You could argue that you can store files in databases. But trust me, it won’t be a pleasant experience.

您可能会争辩说可以将文件存储在数据库中。 但是请相信我,这将不是一个愉快的经历。

So what's another option?

那么还有什么选择呢?

什么是S3? (What is S3?)

Let's look at AWS S3. S3 is an easy-to-use, scalable, and cheap storage service from Amazon. You can use S3 to store any amount of data for a wide range of use cases.

让我们看一下AWS S3。 S3是Amazon提供的易于使用,可扩展且廉价的存储服务。 您可以使用S3来存储各种用例的任意数量的数据。

Static website hosting, data archival, and software delivery are a few general scenarios where S3 would be a perfect tool.

静态网站托管,数据存档和软件交付是S3将是理想工具的一些常规方案。

You can easily push and pull data with S3 using the AWS SDK. S3 also supports a number of popular programming languages, so you can use your existing stack and integrate S3 pretty easily.

您可以使用AWS开发工具包使用S3轻松推送和提取数据。 S3还支持多种流行的编程语言,因此您可以使用现有的堆栈并非常轻松地集成S3。

S3 also offers a great user interface via the AWS console. You can use it to view the data pushed to S3 along with additional options such as security and version control.

S3还通过AWS控制台提供了一个出色的用户界面。 您可以使用它来查看推送到S3的数据以及其他选项,例如安全性和版本控制。

水桶 (Buckets)

In S3, files are stored in buckets. Buckets are similar to folders on your computer.

在S3中,文件存储在存储桶中。 存储桶类似于计算机上的文件夹。

Every bucket has its own unique name which can be used only once. For example, if there is a bucket called “freecodecamp”, neither you nor anyone else can re-use the same bucket name.

每个存储桶都有其唯一的名称,该名称只能使用一次。 例如,如果有一个名为“ freecodecamp”的存储桶,则您和其他任何人都无法重用相同的存储桶名称。

This is useful to uniquely identify resources and for static website hosting with domain names.

这对于唯一标识资源以及使用域名进行静态网站托管很有用。

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.

您可以在存储桶中存储的文件数量没有限制。 存储桶还提供其他功能,例如版本控制和策略 。

You can also use different buckets for a single application. For example, an app that stores medical records can use two buckets: one for private customer data and another public bucket that contains whitepapers.

您也可以为单个应用程序使用不同的存储桶。 例如,一个存储病历的应用程序可以使用两个存储桶:一个存储私人客户数据,另一个存储包含白皮书的公共存储桶。

S3 is also an object-based storage service which means S3 considers each file an object. Every object can have its own metadata that includes the name, size, date, and other information.

S3还是基于对象的存储服务,这意味着S3将每个文件视为一个对象。 每个对象都可以具有自己的元数据,该元数据包括名称,大小,日期和其他信息。

S3存储类型 (S3 Storage Types)

S3 has three storage classes based on general use cases.

S3根据一般用例有三种存储类别。

S3标准 (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标准版是开始使用S3时要放入的默认存储计划。 标准存储类别具有出色的性能,耐用性和可用性。

S3 Standard is best if you have data that you have to access frequently.

如果您有必须经常访问的数据,则S3 Standard是最佳选择。

S3不频繁访问(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 Infrequent Access提供的数据价格更低。 您可以将S3-IA用于较少需要的数据。

S3-IA is great for use cases such as backups and disaster recovery.

S3-IA非常适合备份和灾难恢复等用例。

冰川 (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.

Glacier是S3中最便宜的存储选项,但专为档案存储而设计。 您无法像从Standard或S3-IA一样快地从Glacier提取数据,但是对于长期数据归档而言,这是一个不错的选择。

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中设置生命周期策略。 这意味着您可以计划在一段时间后自动将文件移动到S3-IA或Glacier。

为什么要使用S3? (Why Use S3?)

Companies like Netflix, Dropbox, and Reddit are avid users of S3. The popular file storage system Dropbox built its entire storage capacity on top of Amazon S3.

像Netflix,Dropbox和Reddit这样的公司都是S3的狂热用户。 流行的文件存储系统Dropbox在Amazon S3的基础上构建了全部存储容量。

Let’s look at some of the core features of S3 and understand why it's so popular among enterprises and startups alike.

让我们看一下S3的一些核心功能,并了解为什么S3在企业和初创企业中如此受欢迎。

价格合理 (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.

S3很便宜。 与其他存储解决方案相比,我的意思是超级便宜。 而使用S3,您只需支付使用费用。 没有前期费用,没有设置。 即插即用。

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.

除了负担得起的价格外,S3还提供免费套餐。 这个免费层具有5GB的存储空间,20,000个GET请求,2,000个PUT,COPY,POST或LIST请求以及15GB的数据传输。 第一年的每个月都可以使用免费套餐。

With S3 you can avoid paying for space or bandwidth you might not even need.

使用S3,您可以避免为您甚至不需要的空间或带宽付费。

可扩展 (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.

S3随您的应用程序扩展。 由于您只为使用而付费,因此可以存储在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.

这在多种情况下很有用,尤其是在用户数量意外增长的情况下。 您不必购买额外的空间。 S3覆盖了您。

很安全 (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.

公司偏爱S3的众多原因之一是其对安全性的偏爱。 虽然必须保护自定义服务器设置的安全,但默认情况下S3是安全的。

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中存储可公开访问的信息。 除非您明确配置为不这样做,否则S3会以高安全性锁定所有数据。

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.

S3还维护合规性计划,例如PCI-DSS,HIPAA / HITECH,FedRAMP,EU数据保护指令和FISMA,以帮助您满足行业的法规要求。

它具有版本控制 (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.

使用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.

S3默认情况下禁用版本控制,但是您可以使用AWS控制台启用版本控制。

耐用 (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的一个被低估的功能。 考虑到公司之间常见的数据丢失情况,数据持久性是构建企业软件时要考虑的核心因素。

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提供了高度耐用的存储基础架构。 S3将数据冗余存储在多个设施中,从而在系统出现故障时使您的数据安全。 S3还执行常规的数据完整性检查,以确保您的数据是完整的。

S3 offers 99.999999999% durability (called the 9s durability) and 99.99% availability of objects over a given year.

S3在特定年份提供99.999999999%的耐久性(称为9s耐久性)和99.99%的对象可用性。

S3用例 (S3 Use Cases)

静态网站托管 (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.

您可以将S3用作静态网站托管平台。 静态网站和动态网站之间的区别在于动态网站接收并处理用户输入。 静态网站仅用于显示信息。

With the advent of Single Page Applications, you can host a complete web app on S3, often free of charge.

随着单页应用程序的出现,您可以在S3上托管一个完整的Web应用程序,通常是免费的。

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.

像React和Angular这样的框架已经使用户输入处理在浏览器中发生。 您可以构建一个SPA,以侦听第三方API并将其托管在S3中。

S3 also has great support for routing, so you can use your own custom domain as well.

S3对路由也有很大的支持,因此您也可以使用自己的自定义域。

I recently wrote an article on hosting a React web app using S3 and you can find the article here.

我最近写了一篇有关使用S3托管React Web应用程序的文章 , 您可以在这里找到该文章 。

分析工具 (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数据运行查询,而无需将数据移至分析平台。 这使S3成为构建强大的分析应用程序的绝佳用例。

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提供了多个选项,包括S3 Select,Amazon Athena和Amazon Redshift Spectrum。 您还可以将它们与AWS Lambda结合起来以即时执行数据处理。

文件共享 (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.

Amazon S3也可以用作廉价的文件共享解决方案。 就像我在本文前面提到的那样,著名的文件共享服务Dropbox最初是建立在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存储桶。 S3还提供了传输加速功能,以加快跨较长距离的大型文件传输。

摘要 (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.

Amazon S3是一个很好的工具,可满足您的Web或移动应用程序存储需求。 以按需定价和可扩展性为核心,S3一直是小型企业和大型企业最受欢迎的云存储解决方案。

Companies from Netflix to Pinterest trust S3 with their data, thanks to the 99.999999999% data durability promise from Amazon.

从Netflix到Pinterest公司都对S3的数据表示信任,这要归功于Amazon提供99.999999999%的数据持久性保证。

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.

您还可以将Amazon S3用作个人存储解决方案,或通过静态站点托管来托管您的下一个项目。 简而言之,S3是一款出色的多功能存储解决方案,可满足各种使用情况。

I regularly write about Machine Learning, Cyber Security, and AWS. You can signup for my weekly newsletter here.

我定期撰写有关机器学习,网络安全和AWS的文章。 您可以 在这里 注册我的 每周新闻

翻译自: https://www.freecodecamp.org/news/everything-you-need-to-know-about-aws-s3/

s3 aws

s3 aws_您需要了解的有关AWS S3的所有信息相关推荐

  1. 我们如何使用CircleCI 2.0来构建Angular应用并将其部署到AWS S3

    by Marius Lazar 通过马里乌斯·拉扎尔(Marius Lazar) 我们如何使用CircleCI 2.0来构建Angular应用并将其部署到AWS S3 (How we used Cir ...

  2. aws s3 静态网站_使用AWS S3存储桶启动静态网站

    aws s3 静态网站 This article explores the AWS S3 bucket to configure a static website. 本文探讨了用于配置静态网站的AWS ...

  3. Ubuntu 配置亚马逊 aws cli 上传文件文件夹至 亚马逊 AWS S3

    当使用亚马逊云服务器进行深度学习模型训练时,需要将数据集上传,相比使用 UI 界面上传,使用命令行方式具有更快的上传速率. 配置步骤 安装 aws cli 客户端: pip install awscl ...

  4. Node.js 和 AWS S3 服务实现的在线文件存储系统

    Node.js 和 AWS S3 服务实现的在线文件存储系统 一. 安装依赖 在开始之前,需要确保 Node.js 和 npm 已经安装在你的计算机上.然后在命令行中运行以下命令安装依赖: npm i ...

  5. aws s3 静态网站_如何将静态网站或JAMstack应用托管并部署到AWS S3和CloudFront

    aws s3 静态网站 S3 and CloudFront are AWS cloud services that make serving static assets powerful and ch ...

  6. k8s aws 部署_如何在短短30分钟内使用CircleCI设置到AWS S3的持续部署

    k8s aws 部署 by Adam Watt 通过亚当·瓦特 如何在短短30分钟内使用CircleCI设置到AWS S3的持续部署 (How to setup Continuous Deployme ...

  7. php上传照片到s3云服务器,PHP上传文件到AWS S3生成下载文件URL

    * 加载s3客户端 * @return string*/ functionAWS_S3Client(){$ACCESS_KEY_ID = '你的s3 ID';$SECRET_ACCESS_KEY = ...

  8. AWS S3云存储服务

    AWS S3云存储服务 1 S3概念及基础知识 2 S3的基本操作 3 S3数据安全 4 S3数据加密以及命令行CLI 4.1 S3加密工作原理 4.1.1 server端的加密 4.1.2 clie ...

  9. AWS S3宕机的启发: 云必须分散化

    上周,AWS S3云存储服务中断,互联网圈掀起一番波澜,然而AWS将其因归咎于一名技术人员在例行维修中的失误,关闭了S3子系统的少量服务器,由于一条错误的指令输入,被关闭的服务器比预期要多.事情过去了 ...

最新文章

  1. 如何通过代码连接SQL Server数据库
  2. stm32使用flymcu烧写程序
  3. VBA学习笔记(9)--生成点拨(1)
  4. IE与Firefox的CSS兼容
  5. Linux-下载传输并安装启动Tomcat
  6. [C++调试笔记]diag.cpp
  7. linux 5.5安装万兆网卡驱动,RedHat 5.5系统下安装MW54U无线USB网卡驱动
  8. [恢]hdu 2147
  9. IE被哪个T吗D修改了,卧槽!
  10. I2S,PCM,IOM-2,I2C,SPI,UART,GPIO
  11. !!obj与JavaScript中!!的作用
  12. 知名爆料者:新款MacBook Air采用类似iMac的多彩设计
  13. 2016 版 Laravel 系列入门教程(二)【最适合中国人的 Laravel 教程】
  14. 尼龙毛柱分离T细胞法操作指南
  15. 经典的同步/互斥问题—哲学家进餐
  16. linux上好玩的东西
  17. HTB-AdmirerToo
  18. “由于应用程序配置不正确,程序未能启动”--原因及解决方法
  19. 如何提高条码打印机的速度?
  20. rsync服务及配置

热门文章

  1. npm包开发测试与发布
  2. JavaScript 数组排序及查找数组中最大值最小值方法
  3. 求矩阵两条对角线元素之和
  4. java报错MalformedURLException: unknown protocol: c
  5. 小程序云开发,判断数据库表的两个字段匹配 云开发数据库匹配之 and 和 or 的配合使用
  6. Ubuntu 之linux与windows互传文件
  7. java——网络知识积累
  8. iOS_25彩票_幸运转盘
  9. sdut AOE网上的关键路径(spfa+前向星)
  10. poj 1185(状压dp)