用于Serverless 应用程序开发的亚马逊云科技存储 [重复]

云计算
re:Invent
0
0
## 视频 <video src="https://dev-media.amazoncloud.cn/30-LibaiGenerate/31-LiBaiRebrandingVideo/STG311-R-AWS_storage_for_serverless_application_development__REPEAT_-LBrebrandingWCaptionCN.mp4" class="bytemdVideo" controls="controls"></video> ## 导读 Serverless、事件驱动的计算服务可让您以代码形式为几乎任何类型的应用程序或后端服务运行基础架构,而无需调配或管理服务器。在本论坛中,探索亚马逊云科技存储服务(包括 [Amazon EFS](https://aws.amazon.com/cn/efs/?trk=cndc-detail) 和 [Amazon S3](https://aws.amazon.com/cn/s3/?trk=cndc-detail))的解决方案,以帮助您深入了解常见工作流,并发现哪种存储最适合您的工作负载。考虑亚马逊云科技存储如何帮助您构建大规模适应的现代应用程序,以更高的敏捷性运行分析工作负载,并降低总拥有成本。 ## 演讲精华 <font color = "grey">以下是小编为您整理的本次演讲的精华,共1100字,阅读时间大约是6分钟。如果您想进一步了解演讲内容或者观看演讲全文,请观看演讲完整视频或者下面的演讲原文。</font> 本次演讲的主题是《亚马逊云科技的[无服务器](https://aws.amazon.com/cn/serverless/?trk=cndc-detail)应用开发存储方案》,由三位专家——Brian Lyles、Sebastian Bea 和 Jefferson Frazer 共同分享。Brian Lyles 担任亚马逊简单存储服务([Amazon S3](https://aws.amazon.com/cn/s3/?trk=cndc-detail))的高级首席工程师;Sebastian Bea 是亚马逊云科技(亚马逊云科技)的专业解决方案架构经理;而Jefferson Frazer 则担任Shutterstock 的边缘存储 CID DevOps 和数据库高级总监。 Brian 首先阐述了演讲的核心内容,即探讨如何利用亚马逊云科技的存储服务来构建[无服务器](https://aws.amazon.com/cn/serverless/?trk=cndc-detail)应用。亚马逊云科技提供两种主要的[无服务器](https://aws.amazon.com/cn/serverless/?trk=cndc-detail)存储服务:亚马逊简单存储服务([Amazon S3](https://aws.amazon.com/cn/s3/?trk=cndc-detail))和亚马逊弹性文件系统([Amazon EFS](https://aws.amazon.com/cn/efs/?trk=cndc-detail))。 接下来,他对[无服务器](https://aws.amazon.com/cn/serverless/?trk=cndc-detail)架构进行了详细的解释。简单来说,[无服务器](https://aws.amazon.com/cn/serverless/?trk=cndc-detail)架构允许开发者在无需关心底层基础设施和服务器的情况下构建和运行应用程序。在这种模式下,云服务提供商(例如亚马逊云科技)会自动处理所有基础设施配置、扩展和容量管理。这使得开发者能够实现更快的上市时间、灵活的扩展以及与业务需求相匹配的成本。 亚马逊云科技提供了超过40种管理服务,使得开发者能够轻松地构建[无服务器](https://aws.amazon.com/cn/serverless/?trk=cndc-detail)应用程序。这些服务涵盖了各种领域,如计算服务(如亚马逊云科技 Lambda 和 Fargate)、集成服务(如 [Amazon EventBridge](https://aws.amazon.com/cn/eventbridge/?trk=cndc-detail) 和 Step Functions)以及存储服务(如 [Amazon S3](https://aws.amazon.com/cn/s3/?trk=cndc-detail) 和 [Amazon EFS](https://aws.amazon.com/cn/efs/?trk=cndc-detail))等。 In terms of storage, Sebastian provided a more detailed explanation. [Amazon S3](https://aws.amazon.com/cn/s3/?trk=cndc-detail) offers virtually unlimited storage capacity that can automatically scale to handle any amount of data. It provides massive parallel access, enabling thousands of concurrent users to simultaneously access S3 objects. S3 boasts high throughput capability, providing terabytes of aggregated bandwidth per second. One important feature of S3 is its ability to trigger event notifications when objects are changed, which then calls other Amazon Lambda functions. This enables the creation of reactive, event-driven workflows. S3 also offers intelligent tiering functionality, which can automatically switch objects between different storage tiers based on access patterns. This optimizes storage costs by transitioning objects from the high-frequency accessed S3 Standard to the low-frequency accessed S3 Standard IA and S3 Glacier for archival use. [Amazon EFS](https://aws.amazon.com/cn/efs/?trk=cndc-detail) offers a simple file storage service accessible through the NFS protocol. EFS scales to provide high performance, even with thousands of concurrent connections. Due to its provision of a POSIX-compliant file system, EFS can handle use cases requiring traditional file permissions and metadata. When accessing from the same Amazon Web Services region, EFS offers extremely low file access latency in milliseconds. EFS replicates data across multiple Availability Zones within the region and has multi-AZ file system recovery targets (minutes). EFS also has native integration with Amazon Lambda, allowing Lambda functions to directly access EFS volumes without any special configuration. Like S3, EFS offers intelligent tiering between different storage levels and 11:9 data durability. When deciding between using S3 or EFS, some key considerations include: S3 is suitable for applications requiring object storage, large-scale expansion, and parallel processing, as well as those wanting to build event-driven workflows. EFS is better suited for workloads requiring high IOPS performance, fine-grained file access, and effective updating of large files. Brian subsequently introduced several sample Amazon Web Services Lambda workflows that utilize these storage services: 1. Video asset processing - Original video assets can be uploaded to an S3 storage bucket. S3's event notifications can trigger a Lambda function, which uses an EFS volume to transcode and process the video. The output assets can then be stored in a separate S3 storage bucket for distribution to end users. 2. 数据丰富化 - 在从S3中访问数据时,可以利用Lambda函数实现数据的动态转换。这使得能够从一个S3中的单一真实来源提供针对不同应用程序的定制数据视图。例如,可以为分析应用程序删除PII数据,并将来自其他源的额外数据合并以丰富营销应用程序的数据。 接下来,Sebastian分享了一些实际案例来展示如何使用亚马逊云科技[无服务器](https://aws.amazon.com/cn/serverless/?trk=cndc-detail)存储: 1. The Brains - 这个AI公司以55种语言制作定制视频化身,并面临难以用固定基础设施管理的巨大需求峰值。通过使用EKS和S3/EFS进行存储,他们可以在满足需求的同时轻松扩大或缩小在亚马逊云科技上的规模,同时只支付使用的存储和计算费用。 2. Woot - 他们已经将他们的数据仓库迁移到S3和Lambda。他们没有管理ETL作业,而是使用Kinesis Data Firehose将日志数据流入S3。这种[无服务器](https://aws.amazon.com/cn/serverless/?trk=cndc-detail)的方法有助于提高开发人员的生产力。 最后,Shutterstock的Jefferson介绍了他们如何利用亚马逊云科技的[无服务器](https://aws.amazon.com/cn/serverless/?trk=cndc-detail)功能。Shutterstock管理着超过7.3亿张图像和450万段视频,存储在2500个S3存储桶中,总计80PB。他们将遗留的单体系统分解成使用Step Functions和EventBridge协调的微服务。重度使用S3的功能,如前缀、访问控制和安全性能帮助他们优化性能和成本。通过采用[无服务器](https://aws.amazon.com/cn/serverless/?trk=cndc-detail)架构,他们的速度提高了4700%,超过了以前的平台。 Jefferson分享了他们在[无服务器](https://aws.amazon.com/cn/serverless/?trk=cndc-detail)旅程中的一些关键经验: - 将遗留系统分解成尽可能小的独立功能。 - 消除通用繁重工作,以便工程师可以专注于核心问题而不是基础设施管理。 - [无服务器](https://aws.amazon.com/cn/serverless/?trk=cndc-detail)组件,如Lambda和S3,消除了管理服务器和存储的开销。 总之,由亚马逊云科技Lambda、S3和EFS等服务提供的[无服务器](https://aws.amazon.com/cn/serverless/?trk=cndc-detail)架构可以提供显著的好处,如缩短上市时间、更容易的扩展性和更低的成本。对于存储,S3和EFS提供了高性能、持久且可扩展的存储选项。使用诸如S3事件和Object Lambda等功能,可以实现松散耦合的反应式工作流程。像Shutterstock这样的公司已经看到了通过在亚马逊云科技上采用[无服务器](https://aws.amazon.com/cn/serverless/?trk=cndc-detail)架构而取得的伟大成果。 **下面是一些演讲现场的精彩瞬间:** 布莱恩·莱尔斯(Brian Lyles)是亚马逊S3的高级首席工程师,塞巴斯蒂安·比安(Sebastian Bea)是亚马逊云科技的专项解决方案架构经理,杰斐逊·弗雷泽(Jefferson Frazer)是Shutterstock的高级总监。 ![](https://d1trpeugzwbig5.cloudfront.net/STG311-R-AWS_storage_for_serverless_application_development__REPEAT_/images/rebranded/STG311-R-AWS_storage_for_serverless_application_development__REPEAT__0.png) 他们共同探讨了[无服务器](https://aws.amazon.com/cn/serverless/?trk=cndc-detail)计算和存储解决方案的相关议题。 ![](https://d1trpeugzwbig5.cloudfront.net/STG311-R-AWS_storage_for_serverless_application_development__REPEAT_/images/rebranded/STG311-R-AWS_storage_for_serverless_application_development__REPEAT__1.png) 亚马逊云科技的服务设计充分考虑了良好的架构框架,旨在提供卓越的运营、安全性、可靠性、性能、效率和成本优化。 ![](https://d1trpeugzwbig5.cloudfront.net/STG311-R-AWS_storage_for_serverless_application_development__REPEAT_/images/rebranded/STG311-R-AWS_storage_for_serverless_application_development__REPEAT__2.png) 专家们强调,相较于S3,EFS在处理具有高变更速度的环境中具有明显优势,因为后者允许对现有大型文件进行靶向更新。 ![](https://d1trpeugzwbig5.cloudfront.net/STG311-R-AWS_storage_for_serverless_application_development__REPEAT_/images/rebranded/STG311-R-AWS_storage_for_serverless_application_development__REPEAT__3.png) 此外,专家还指出,在使用EFS而非S3处理大量小型文件访问的工作负载时,EFS具有明显的成本优势。 ![](https://d1trpeugzwbig5.cloudfront.net/STG311-R-AWS_storage_for_serverless_application_development__REPEAT_/images/rebranded/STG311-R-AWS_storage_for_serverless_application_development__REPEAT__4.png) 通过使用CSI驱动程序将存储与EKS本机集成,开发人员能够轻松访问存储,无需深入了解底层存储细节。 ![](https://d1trpeugzwbig5.cloudfront.net/STG311-R-AWS_storage_for_serverless_application_development__REPEAT_/images/rebranded/STG311-R-AWS_storage_for_serverless_application_development__REPEAT__5.png) 演讲者们讨论了如何在亚马逊云科技平台上构建应用程序,通过将过程分解成事件,插入用于测试的接口,实现优雅地处理故障以及优化成本的同时保持灵活性。 ![](https://d1trpeugzwbig5.cloudfront.net/STG311-R-AWS_storage_for_serverless_application_development__REPEAT_/images/rebranded/STG311-R-AWS_storage_for_serverless_application_development__REPEAT__6.png) ## 总结 本次演讲主要探讨了如何运用亚马逊云计算服务(Amazon Web Services)的[无服务器](https://aws.amazon.com/cn/serverless/?trk=cndc-detail)存储方案,如S3(简单存储服务)和EFS(弹性文件系统),结合Lambda([无服务器](https://aws.amazon.com/cn/serverless/?trk=cndc-detail)函数)和Fargate([无服务器](https://aws.amazon.com/cn/serverless/?trk=cndc-detail)计算容器)来实现灵活且可扩展的[无服务器](https://aws.amazon.com/cn/serverless/?trk=cndc-detail)计算。演讲重点介绍了S3的对象存储特性,适用于并行工作负载的扩展,并可透过事件通知与其他亚马逊云科技服务进行整合。相比之下,EFS文件存储更适用于访问随机小文件和满足POSIX权限需求。 演讲者通过一个使用S3事件的示例工作流程来说明如何触发Lambda处理,例如生成视频缩略图或编辑数据字段。他们展示了一个例子,说明如何使用S3对象和Lambda在不复制对象的情况下实时转换数据。建议将应用程序拆分为由事件驱动的较小功能模块,以实现灵活性。Step Functions可以协助协调这些事件和[无服务器](https://aws.amazon.com/cn/serverless/?trk=cndc-detail)组件(如EFS)与Lambda的集成。 Shutterstock分享了他们在实际操作中如何使用S3、EventBridge(事件桥接器)、Step Functions和Lambda构建一个跨品牌统一的摄取平台。他们强调应尽量使用较小的函数,并让Step Functions负责协调和处理错误。这种[无服务器](https://aws.amazon.com/cn/serverless/?trk=cndc-detail)方法带来的效率提升使他们的速度提高了4700%。 ## 演讲原文 ## 想了解更多精彩完整内容吗?立即访问re:Invent 官网中文网站! [2023亚马逊云科技re:Invent全球大会 - 官方网站](https://webinar.amazoncloud.cn/reInvent2023/?s=8739&smid=19458 "2023亚马逊云科技re:Invent全球大会 - 官方网站") [点击此处](https://aws.amazon.com/cn/new/?trk=6dd7cc20-6afa-4abf-9359-2d6976ff9600&trk=cndc-detail "点击此处"),一键获取亚马逊云科技全球最新产品/服务资讯! [点击此处](https://www.amazonaws.cn/new/?trk=2ab098aa-0793-48b1-85e6-a9d261bd8cd4&trk=cndc-detail "点击此处"),一键获取亚马逊云科技中国区最新产品/服务资讯! ## 即刻注册亚马逊云科技账户,开启云端之旅! [【免费】亚马逊云科技“100 余种核心云服务产品免费试用”](https://aws.amazon.com/cn/campaigns/freecenter/?trk=f079813d-3a13-4a50-b67b-e31d930f36a4&sc_channel=el&trk=cndc-detail "【免费】亚马逊云科技“100 余种核心云服务产品免费试用“") [【免费】亚马逊云科技中国区“40 余种核心云服务产品免费试用”](https://www.amazonaws.cn/campaign/CloudService/?trk=2cdb6245-f491-42bc-b931-c1693fe92be1&sc_channel=el&trk=cndc-detail "【免费】亚马逊云科技中国区“40 余种核心云服务产品免费试用“")
目录
亚马逊云科技解决方案 基于行业客户应用场景及技术领域的解决方案
联系亚马逊云科技专家
亚马逊云科技解决方案
基于行业客户应用场景及技术领域的解决方案
联系专家
0
目录
关闭