In this lab, we will explore best practices in pattern design, focusing on optimizing performance for both Amazon S3 and Amazon EFS.
Applications can achieve thousands of transactions per second when uploading and retrieving storage from Amazon S3. S3 automatically scales to high request rates. For instance, applications can reach at least 3,500 PUT/COPY/POST/DELETE or 5,500 GET/HEAD requests per second for each partitioned prefix in a bucket, with no limit on the number of prefixes. Increasing read or write performance is possible through parallelization. For example, creating 10 prefixes in a bucket can scale read performance to 55,000 requests per second. Data lake applications on S3, dealing with large-scale data, can maximize network interface usage of their Amazon EC2 instances, reaching up to 100 Gb/s on a single instance and aggregating throughput across multiple instances for even higher rates.
Latency-sensitive applications, like social media messaging, can achieve approximately 100–200 milliseconds for small object latencies. For different architectural needs, AWS services like Amazon CloudFront or Amazon ElastiCache can accelerate performance. Amazon S3 Transfer Acceleration, using CloudFront’s edge locations, offers fast, secure file transfers over long distances. Be aware of AWS KMS Limits for server-side encryption request rates.
For detailed best practices and design patterns for optimizing Amazon S3 performance, refer to the Performance Guidelines for Amazon S3 and Performance Design Patterns for Amazon S3.
Amazon EFS provides a serverless, elastic file system accessible from various AWS services and on-premises. It delivers over 10 gibibytes per second (GiBps) of throughput, 500,000 IOPS, and maintains sub-millisecond or low single-digit millisecond latencies.
File system performance in Amazon EFS is measured by latency, throughput, and IOPS, influenced by the file system’s configuration:
EFS uses two storage class types:
IA storage classes have higher first-byte latency compared to EFS Standard or EFS One Zone classes.
EFS offers two performance modes: