We're sunsetting PodQuest on 2025-07-28. Thank you for your support!
Export Podcast Subscriptions
cover of episode #101: Faster serverless APIs with Brian LeRoux

#101: Faster serverless APIs with Brian LeRoux

2024/4/23
logo of podcast Real World Serverless with theburningmonk

Real World Serverless with theburningmonk

AI Deep Dive AI Chapters Transcript
People
B
Brian LaRue
主持人
专注于电动车和能源领域的播客主持人和内容创作者。
Topics
Brian LeRoux: 我是无服务器技术的早期采用者,早在2015年就对API Gateway产生了兴趣。我最初认为每个人都想编写代码并外包扩展,但事实并非如此。现在这种情况正在改变,因为世界变得更加以前端为中心,运行工作负载的教条正在消失。我们公司Begin.com是一个基于开源框架Architect的无服务器部署平台,它简化了部署过程。我们发现前端开发者是最大的新云用户群体,他们不关心服务器,只关心完成工作。React性能较差,因为它做了浏览器已经做的事情。我们正在开发Enhance,一个使用Web组件的以前端为中心的无服务器开发框架。我认为未来大多数工作负载都将由基础设施提供商管理,只有极少数例外情况。近年来,AWS Lambda的速度有了显著提高,这使得使用较大的函数成为可能。尽管Lambda速度提高了,但我仍然认为单一用途函数在运维方面更容易。云计算不断改进,我们需要不断地衡量和挑战自己的假设。改变观点基于更多信息是一件好事,在某些情况下,较大的函数是可以接受的。我们创建了AWS Lite SDK,它比AWS SDK v3快得多。AWS SDK v3的性能比AWS Lite差得多,AWS SDK v3的冷启动时间过长,而AWS Lite的冷启动时间在200毫秒以内。AWS Lite通过手工编写插件来提高性能,只支持无服务器相关的AWS服务,并且不针对浏览器构建。我们正在探索使用Web组件和Wasm来简化后端渲染,使用Shadow DOM来隔离Web组件的样式和代码。我不喜欢“无函数”这个术语,因为它关注点错了,应该关注的是什么对你的用例最有效。 John: 我欢迎Brian LaRue来到节目,他是无服务器技术的早期采用者之一。近年来,无服务器技术的势头主要来自前端,将前端开发者作为目标市场是一个聪明的举动,因为他们没有管理机器的经验。Architect框架是一个有自己观点的框架,它比其他框架更简化了与DynamoDB等服务的连接。使用单个Lambda函数和现有的Web框架可以简化测试。应该同时进行本地测试和云端测试。LocalStack是一个令人印象深刻的项目,它模拟了大量的AWS服务。使用单个Lambda函数和现有的Web框架可以简化测试。我仍然认为单一用途函数在运维方面更容易。我们正在探索无函数集成,这可能会减少代码量。我不喜欢“无函数”这个术语,因为它关注点错了,应该关注的是什么对你的用例最有效。对于不熟悉前端开发的人来说,什么是Web组件,它与单页应用程序有何不同?你是否研究过Jeremy Daly的Ampt框架?

Deep Dive

Chapters
Brian LeRoux, co-founder of begin.com and creator of the Architect framework, discusses his early adoption of serverless, recounting a conversation from 2019 where the mainstream adoption of serverless was still considered years away. He recalls his initial interest sparked by API Gateway's announcement in 2015 and his incorrect assumption about the widespread desire for code writing and outsourced scaling.
  • Brian LeRoux was an early adopter of serverless, recognizing its potential in 2015.
  • He initially assumed that most developers would embrace serverless for its simplified scaling and focus on code.
  • The mainstream adoption of serverless took longer than anticipated, with discussions in 2019 still projecting it years away.

Shownotes Transcript

In this episode, I spoke with Brian LeRoux, co-founder of begin.com) and creator of the Architect framework). Brian is also an AWS Serverless Hero and is currently working on enhance.dev), an HTML-first full-stack web framework.In a wide-ranging conversation, we discussed:

  • the Architect framework
  • Lambdalith vs. Single-purpose functions
  • Building a faster AWS SDK (aws-lite)
  • Web components
  • Functionless
  • WASM
  • Infra from code frameworks such as Ampt

Links from the episode:

  • AWS Lite SDK)
  • Architect framework)
  • Begin)
  • Enhance framework)
  • The LocalStack episode)
  • The LLRT episode)
  • Ampt) by Jeremy Daly
  • My serverless testing course)

Opening theme song:Cheery Monday by Kevin MacLeodLink: https://incompetech.filmmusic.io/song/3495-cheery-mondayLicense: http://creativecommons.org/licenses/by/4.0)