{"id":3081,"date":"2021-02-19T14:46:21","date_gmt":"2021-02-19T20:46:21","guid":{"rendered":"https:\/\/microsoftgeek.com\/?p=3081"},"modified":"2021-02-19T14:46:21","modified_gmt":"2021-02-19T20:46:21","slug":"aws-difference-between-efs-and-ebs","status":"publish","type":"post","link":"https:\/\/microsoftgeek.com\/?p=3081","title":{"rendered":"AWS \u2014 Difference between EFS and EBS"},"content":{"rendered":"\n<p id=\"1b64\">EFS (Elastic File System) vs EBS (Elastic Block Store) comparison in AWS<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miro.medium.com\/max\/1600\/1*2Czsrkl6pyJRqtYvRnignQ.jpeg\" alt=\"Image for post\"\/><figcaption>EFS<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"e8e4\">TL;DR:<\/h2>\n\n\n\n<p id=\"0a3c\"><a href=\"https:\/\/aws.amazon.com\/efs\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong><em>Amazon EFS<\/em><\/strong><\/a><em>\u00a0is an NFS file system service offered by AWS. An Amazon EFS file system is excellent as a managed network file system that can be shared across different Amazon EC2 instances and works like NAS devices.<\/em><\/p>\n\n\n\n<p id=\"07fc\"><a rel=\"noreferrer noopener\" href=\"https:\/\/aws.amazon.com\/ebs\/\" target=\"_blank\"><strong><em>Amazon EBS<\/em><\/strong><\/a><em>\u00a0is the block storage offered on AWS. An Amazon EBS volume is a persistent storage device that can be used as a file system for databases, application hosting and storage, and plug and play devices.<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miro.medium.com\/max\/1087\/1*LHy1IztvmSI3-EhAAQBEPw.png\" alt=\"Image for post\"\/><figcaption>EBS<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"9719\"><strong>EBS<\/strong><\/h2>\n\n\n\n<p id=\"b93b\">Every server needs a drive. EBS is essentially a cloud-based storage for the drives of your virtual machines. EBS is designed to store data in blocks attached to an Amazon EC2 instance, similar to a local disk drive on your physical machine. You need to mount EBS onto an Amazon EC2 instance.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"147d\"><strong>EFS<\/strong><\/h2>\n\n\n\n<p id=\"1f7b\">EFS is on the other hand automatically scalable \u2014 this means that you need not to be worried about your running applications as there won\u2019t be any problems even if the workload suddenly becomes higher \u2014 the storage will automatically scale itself. Now, if the workload decreases \u2014 the storage will itself scale down, so that you don\u2019t pay anything for the part of storage that you don\u2019t use.<br>Amazon EFS is especially helpful for running servers, shared volumes, big data analysis, and any scalable workload you can think of.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"bda4\"><strong>Key differences:<\/strong><\/h2>\n\n\n\n<p id=\"041d\"><strong>Storage Type<br><\/strong><em>EBS: Block Storage<br>EFS: Object storage<\/em><\/p>\n\n\n\n<p id=\"ec86\"><strong>Performance<br><\/strong><em>EBS: Hardly scalable<br>\u2022 Manually scale the size of the volumes without stopping instance.<br>\u2022 Baseline performance of 3 IOPS per GB for General Purpose volume<br>\u2022 Use Provisioned IOPS for increased performance<br>EFS: Scalable<br>\u2022 Highly Scalable Managed Service<br>\u2022 Supports up to 7000 file system operations per second<\/em><\/p>\n\n\n\n<p id=\"6a09\"><strong>Data Stored<br><\/strong><em>EBS:<br>\u2022 Data stored stays in the same Availability zone.<br>\u2022 Replicas are made within the AZ for higher durability<br>EFS:<br>\u2022 Data stored in AWS EFS stays in the region.<br>\u2022 Replicas are made within the region<\/em><\/p>\n\n\n\n<p id=\"6604\"><strong>Data Access<br><\/strong><em>EBS: Can only be accessed by a single Amazon EC2 instance<br>EFS: Can be accessed by 1 to 1000s of EC2 instances from multiple AZs, concurrently<\/em><\/p>\n\n\n\n<p id=\"a467\"><strong>File System<br><\/strong><em>EBS: Supports various file systems, including ext3 and ext4<br>EFS: File storage service for use with AWS EC2. EFS can be used as network file system for on-premise servers too using AWS Direct Connect.<\/em><\/p>\n\n\n\n<p id=\"14e7\"><strong>Encryption<br><\/strong><em>EBS: Uses an AWS KMS\u2013Managed Customer Master Key (CMK) and AES 256-bit Encryption standards<br>EFS: Uses an AWS KMS\u2013Managed Customer Master Key (CMK) and AES 256-bit Encryption standards<\/em><\/p>\n\n\n\n<p id=\"20ca\"><strong>Availability<br><\/strong><em>EBS: 99.99% available<br>EFS: Highly available (No public SLA)<\/em><\/p>\n\n\n\n<p id=\"4359\"><strong>Durability<br><\/strong><em>EBS: 20 times more reliable than normal hard disks<br>EFS: Highly durable (No public SLA)<\/em><\/p>\n\n\n\n<p id=\"974a\"><strong>Availability Zone Failure<br><\/strong><em>EBS: Cannot withstand AZ failure without point-in time EBS Snapshots<br>EFS: Every file system object is redundantly stored across multiple Availability Zones so it can survive one AZ failure.<\/em><\/p>\n\n\n\n<p id=\"f8e4\"><strong>Storage Size<br><\/strong><em>EBS: Maximum storage size of 16 TB<br>EFS: No limitation on the size of the file system<\/em><\/p>\n\n\n\n<p id=\"e05b\"><strong>File Size Limitation<br><\/strong><em>EBS: No limitation on file size in EBS disk<br>EFS: Single files have a maximum size of 47.9TiB<\/em><\/p>\n\n\n\n<p id=\"b9b8\"><strong>Data Throughput and I\/O<br><\/strong><em>EBS: SSD- and HDD-backed storage types. Use of SSD backed and Provisioned IOPS is recommended for dedicated IO operations as needed.<br>EFS: Default throughput of 3GB\/s for all connected client.<\/em><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"5dfd\"><strong>When to use<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miro.medium.com\/max\/872\/1*ZJVF3qE7NURxVVPAyMPkZw.png\" alt=\"Image for post\"\/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>EFS (Elastic File System) vs EBS (Elastic Block Store) comparison in AWS TL;DR: Amazon EFS\u00a0is an NFS file system service offered by AWS. An Amazon EFS file system is excellent as a managed network file system that can be shared across different Amazon EC2 instances and works like NAS devices. Amazon EBS\u00a0is the block storage [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[64,35],"tags":[],"class_list":["post-3081","post","type-post","status-publish","format-standard","hentry","category-awsamazon-web-services-amazon","category-cloud-computing"],"_links":{"self":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/3081","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3081"}],"version-history":[{"count":1,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/3081\/revisions"}],"predecessor-version":[{"id":3082,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/3081\/revisions\/3082"}],"wp:attachment":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3081"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3081"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3081"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}