arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2310.16510cs.SE
收藏

使用 Java 和 AWS Lambda 的性能最佳实践

Performance best practices using Java and AWS Lambda

Juan Mera Menéndez, Martin Bartlett

AI总结:

本文研究了多种技术和策略以减少冷启动并显著提升 Java AWS Lambda 函数的性能,通过负载测试独立及组合评估各方法,证明无需投入太多精力即可大幅缓解延迟问题。

摘要:

尽管其已经广受欢迎,但它的采用率仍在不断增长。越来越多的开发者和架构师继续在云解决方案中采用并应用 FaaS(Function as a Service,功能即服务)模型。使用最广泛的 FaaS 服务是由 Amazon Web Services 提供的 AWS Lambda。此外,尽管编程语言出现了新趋势,Java 仍然保持着显著的使用份额。将这两种技术结合使用时出现的主要问题是众所周知的:显著的延迟和令人畏惧的冷启动。然而,无需投入太多精力即可大大缓解此问题。在本文中,将研究各种技术、策略和方法,旨在减少冷启动并显著提升 Java Lambda 函数的性能。从一个涉及 AWS Lambda、Java、DynamoDB 和 Api Gateway 的系统开始。每种方法将独立进行测试,通过负载测试分析其影响。随后,将把它们组合起来进行测试,以努力实现尽可能大的性能提升。

英文摘要:

Despite its already widespread popularity, it continues to gain adoption. More and more developers and architects continue to adopt and apply the FaaS (Function as a Service) model in cloud solutions. The most extensively used FaaS service is AWS Lambda, provided by Amazon Web Services. Moreover, despite the new trends in programming languages, Java still maintains a significant share of usage. The main problem that arises when using these two technologies together is widely known: significant latencies and the dreaded cold start. However, it is possible to greatly mitigate this problem without dedicating too much effort. In this article, various techniques, strategies and approaches will be studied with the aim of reducing the cold start and significantly improving the performance of Lambda functions with Java. Starting from a system that involves AWS lambda, java, DynamoDB and Api Gateway. Each approach will be tested independently, analyzing its impact through load tests. Subsequently, they will be tested in combination in an effort to achieve the greatest possible performance improvement.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑