本文翻译自:AWS EFS vs EBS vs S3 (differences & when to use?)
As per the title of this question, what are the practical differences between AWS EFS, EBS and S3? 根据这个问题的标题,AWS EFS,EBS和S3之间的实际差异是什么?
My understanding of each: 我对每个人的理解:
- S3 is a storage facility accessible any where S3是一个可在任何地方访问的存储设施
- EBS is a device you can mount onto EC2 EBS是一种可以安装到EC2上的设备
- EFS is a file system you can mount onto EC2 EFS是一个可以安装到EC2上的文件系统
So why would I use EBS over EFS? 那么为什么我会使用EBS而不是EFS? Seem like they have the same use cases but minor semantic differences? 看起来他们有相同的用例但是语义差异很小? Although EFS is replicated across AZs where as EBS is just a mounted device. 虽然EFS是在AZ之间复制的,因为EBS只是一个已安装的设备。 I guess my understanding of EBS is lacking hence I'm unable to distinguish. 我想我对EBS的理解是缺乏的,因此我无法区分。
Why choose S3 over EFS? 为什么选择S3而不是EFS? They both store files, scale and are replicated. 它们都存储文件,扩展和复制。 I guess with S3 you have to use the SDK where as with EFS being a file system you can you standard I/O methods from your programming language of choice to create files. 我想在S3中你必须使用SDK,因为EFS是一个文件系统,你可以从你选择的编程语言中选择标准的I / O方法来创建文件。 But is that the only real difference? 但那是唯一真正的区别吗?
#1楼
参考:https://stackoom.com/question/2062h/AWS-EFS-vs-EBS-vs-S-差异和何时使用
#2楼
Fixing the comparison: 修正比较:
- S3 is a storage facility accessible any where S3是一个可在任何地方访问的存储设施
- EBS is a device you can mount onto EC2 EBS是一种可以安装到EC2上的设备
- EFS is a file system you can mount onto several EC2 instances at the same time EFS是一个文件系统,可以同时安装到多个EC2实例上
At this point it's a little premature to compare EFS and EBS- the performance of EFS isn't known, nor is its reliability known. 此时比较EFS和EBS还为时尚早 - EFS的性能未知,其可靠性也未知。
Why would you use S3? 你为什么要用S3?
- You don't have a need for the files to be 'local' to one or more EC2 instances. 您不需要将文件作为一个或多个EC2实例的“本地”。
- (effectively) infinite capacity (有效)无限的能力
- built-in web serving, authentication 内置Web服务,身份验证
#3楼
One word answer: MONEY :D 一个字回答:钱:D
1 GB to store in US-East-1: (Updated at 2016.dec.20) 1 GB存储在US-East-1 :(更新于2016.dec.20)
- Glacier: $0.004/Month (Note: Major price cut in 2016) 冰川:每月0.004美元(注:2016年主要降价