s3 aws_您需要了解的有关AWS S3的所有信息
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
相关文章:

untitled与前端——初学
“前端” 啥? 百度百科: 就是制作一网页界面。比如360浏览器打开, 包括界面布局设计,搜索框,点击字或图标跳到另一个页面等。 软件Untitled 下载网址:http://www.jetbrains.com/ 下拉 点download࿰…

NSThread
NSThread是轻量级的多线程开发,使用起来也并不复杂,但是使用NSThread需要自己管理线程生命周期。 可以使用对象方法: (void)detachNewThreadSelector:(SEL)selector toTarget:(id)target withObject:(id)argument 直接将操作添加到线程中并…

异步发送邮件、短信、微信
用户创建订单的按钮点击后,服务器存储这个订单信息后,调用发送短信、邮件、微信的接口,发送消息。而发送短信、邮件、微信都要涉及第三方的处理,服务器又要发送一个新的包裹给一个新的服务器,告诉他帮我发一个信息出去…

英语面试简短问题_用简单的英语解释产品设计
英语面试简短问题Product design is the process you go through when you conceptualize and build a product.产品设计是概念化和构建产品时要经历的过程。 The path to building – hardware, software, or even simple prototypes – has different steps and approaches.…

6-12 二叉搜索树的操作集
6-12 二叉搜索树的操作集(30 分) 本题要求实现给定二叉搜索树的5种常用操作。 函数接口定义: BinTree Insert( BinTree BST, ElementType X ); BinTree Delete( BinTree BST, ElementType X ); Position Find( BinTree BST, ElementType X );…

iOS关于自定义rightBarButtonItem
在常见iOS开发中,我们常遇到这样的需求,如下: 我们需要自定义导航栏右侧按钮,常见的自定义包装按钮如下: //设置rightItem; UIButton *btn [UIButton buttonWithType:UIButtonTypeCustom]; btn.frame CGRectMake(0, 0, 40, 30); btn.selected NO; [btn setTitle:"管理&…

URL里汉字转码
URL里面不能包含中文。 解决办法:进行转码 NSString *urlStr[NSString stringWithFormat:kLotteryBar_putOutReviewUrl,_token,self.reviews_id,_User_Id,reviews_content]; urlStr[urlStr stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];

electron.js_在使用Electron.js之前我希望知道的事情
electron.jsIn this article, Ill share how you can avoid some of the mistakes I made when learning about Electron.js 🤦♂️. I hope it helps!在本文中,我将分享如何避免在学习Electron.js 🤦🤦️时犯的一些错误。 希…

Entity Framework的启动速度优化
最近开发的服务放到IIS上寄宿之后,遇到一些现象,比如刚部署之后,第一次启动很慢;程序放置一会儿,再次请求也会比较慢。比如第一个问题,可以解释为初次请求某一个服务的时候,需要把程序集加载到内…

NSURLConnection的简单使用
遵循代理:NSURLConnectionDataDelegate -(void)fetchWebData:(id)sender{ self.isLoadingYES;NSString *urlStrkRequestUrlStr(self.page);NSURL *url[NSURL URLWithString:urlStr];NSURLRequest *request[NSURLRequest requestWithURL:url];self.connection[N…

tcp reno_如何使用称为Reno Expo的简单入门工具包构建全栈应用程序
tcp renoBuilding any new project from scratch can be intimidating. Theres a lot to decide before you can even start coding to test out your idea.从头开始构建任何新项目都可能令人生畏。 在开始编码以检验您的想法之前,还有很多决定。 How are you buil…

不同命名空间的对象二进制反序列化问题
本质上说,这并不是二进制序列化的问题,甚至不关序列化的问题。 你想要的是在两个内部结构一致但在不同命名空间(甚至不同项目)的同名类间做类型转换。 这个问题很常见,因为实际工作中经常会有此类需求,但是…

对大文件的断点续传
注:#import "YGFileDownloader.h"是对NSURLConnection的简单封装 #import "YGResumeDownloadViewController.h" #import "NSStringutil.h"#import "YGFileDownloader.h"#define URL "http://dlsw.baidu.com/sw-searc…

bootstrap modal 弹出效果
window.showMsg function (msg) {//显示悬浮窗$("#autoCloseModal").modal("show")//设置文本内容$("#autoCloseModal #autoCloseModalBody").html("")$("#autoCloseModal #autoCloseModalBody").html(msg);//两秒后消失se…

68-95-99规则–以普通英语解释正态分布
Meet Mason. Hes an average American 40-year-old: 5 foot 10 inches tall and earning $47,000 per year before tax.认识梅森。 他平均年龄40岁,身高5英尺10英寸,每年税前收入$ 47,000。 How often would you expect to meet someone who earns 10x …

Uva 10048 - Audiophobia (Floyd变形)
题目链接 https://vjudge.net/problem/UVA-10048 【题意】 输入一个C个点,S个边(C<100,S<1000)的无向图,边权表示该路径上的噪声值,当你从某点出发到另外一点时希望路上经过的最大噪声值最小,输入一…

ubuntu联网经常掉线的解决方法
打开电脑,发现联网的图标没有连接上,想手动点击连接上,却发现选项是灰色(不可选) 或者是图标显示已经连接上了,但浏览器就是无法上网,也ping不通 此时打开终端输入 sudo /etc/init.d/network-ma…

JSON和XML
JSONJSON(JavaScript Object Notation)一种轻量级的数据交换格式,具有良好的可读和便于快速编写的特性。可在不同平台之间进行数据交换。JSON采用兼容性很高的、完全独立于语言文本格式,同时也具备类似于C语言的习惯(包括C, C, C#, Java, JavaScript, Pe…

deno使用rust_如何在Deno和Oak中使用MySQL
deno使用rustI recently wrote about how to make a Todo API in Deno Oak (without using a database). You can find the repo under chapter_1:oak on GitHub. 我最近写了关于如何在Deno Oak(不使用数据库)中制作Todo API的文章 。 您可以在GitHub上的Chapter_1࿱…

Zookeeper 安装和配置
Zookeeper 安装和配置01 ZooKeeper的安装与部署02转载于:https://www.cnblogs.com/hfultrastrong/p/8414587.html

iOS中的各种手势
/**基类UIGestureRecognizerUITapGestureRecognizer Tap 点击UIPanGestureRecognizer Pan (慢速滑动,拖移)UILongPressGestureRecognizer LongPress (长按)UIPinchGestureRecognizer Pinch (捏合,两手指往内或外拨动&…

Nginx问题定位之监控进程异常退出
nginx在运行过程中是否稳定,是否有异常退出过?这里总结几项平时会用到的小技巧。 1. 在error.log中查看是否有signal项,如果有,看看signal是多少。 比如,这是一个异常退出的情况: $grep signal error.log20…

k3应付系统初始化应付票据_在家工作时应付无尽干扰的真实感觉
k3应付系统初始化应付票据Whether or not you have worked remotely before, you’ve likely never had to share your “home office” with your partner and two children. 无论您以前是否在远程工作,您都可能从未与伴侣和两个孩子共享“家庭办公室”。 Before …

WinForm绘制带有升序、降序的柱形图
WinForm绘制带有升序、降序的柱形图 private void HuiZhiTu( string strPaiXu){//初始数据int[] nums { 150, 89, 200, 60, 70, 90 };if (strPaiXu "升序"){//冒泡排序for (int i 0; i < nums.Length; i){for (int j 0; j < nums.Length-1; j){if (nums[i]…

更轻量的 View Controllers
原文链接:http://objccn.io/issue-1-1/ View controllers 通常是 iOS 项目中最大的文件,并且它们包含了许多不必要的代码。所以 View controllers 中的代码几乎总是复用率最低的。我们将会看到给 view controllers 瘦身的技术,让代码变得可以…

Alpha阶段项目总结
一,设想和目标 1. 我们的软件要解决什么问题?是否定义得很清楚?是否对典型用户和典型场景有清晰的描述? 针对铁大校园,解决旧物堆积、资源浪费的问题。我们的定义很清楚,对于典型用户和场景有过清晰的描述。…

如何成为软件工程师的团队合作者
In my first software engineering role at an eCommerce brand, I often secretly worked on tasks outside of my core responsibilities. And many times I felt isolated from my teammates. 在电子商务品牌的第一个软件工程职位中,我经常秘密地从事核心职责以外…

HTML转义字符
转自地址:http://blog.csdn.net/wusuopubupt/article/details/8817826 by wusuopubupt No.文字表記10進表記16進表記文字 Comment001""""" quotation mark APL quote002&&"&" ampersand003<&l…

制作模拟器和真机通用静态库
通常在项目中使用静态库的时候都会有两个版本,一个用于模拟器,一个用于真机,因为Mac和iPhone的CPU不同,才造成了这种情况。 为了模拟器与真机之间切换调试的方便,制作通用版本非常有必要。现在有两个版本的静态库libSQ…

使用静态URL片段 URL路由 精通ASP-NET-MVC-5-弗瑞曼
转载于:https://www.cnblogs.com/ganmk--jy/p/5570718.html