We're sunsetting PodQuest on 2025-07-28. Thank you for your support!
Export Podcast Subscriptions
cover of episode #106: Rust with Lambda, easy-mode Rust & future of Middy | ft. Luciano Mammino

#106: Rust with Lambda, easy-mode Rust & future of Middy | ft. Luciano Mammino

2024/8/13
logo of podcast Real World Serverless with theburningmonk

Real World Serverless with theburningmonk

AI Deep Dive AI Chapters Transcript
People
L
Luciano Mammino
Topics
Luciano Mammino: 我拥有15年以上全栈Web开发经验,熟悉多种编程语言,包括JavaScript、.NET、PHP和Java等。我创建了流行的AWS Lambda中间件引擎Middy,最初是为了提高团队代码的可管理性。Middy的成功得益于开源社区的贡献,目前主要由Will维护。Middy的未来发展方向是专注于ESM,并改进TypeScript支持,但TypeScript配置的复杂性仍然是一个挑战。我个人对Rust编程语言很感兴趣,并认为它非常适合用于构建高性能的Lambda函数,因为它具有高效的内存利用率和极低的冷启动时间。我已经出版了一本关于使用Rust编写Lambda函数的书籍,旨在帮助JavaScript开发者学习Rust。虽然学习Rust需要一定的投入,但即使只掌握基础知识,也能显著提升Lambda函数的性能。Rust Lambda的生态系统已经相当完善,Cargo Lambda工具简化了构建和部署流程,并与SAM和CDK等工具良好集成。Rust中的Tokyo生态系统提供了类似于Middy的中间件机制,但目前缺乏丰富的中间件库。最后,我分享了我作为AWS Heroes和Microsoft MVP的经验,并比较了这两个项目的不同之处。 Ian: 我对Luciano在Middy项目和Rust方面的经验很感兴趣。我们讨论了Middy的历史、架构以及未来发展方向,包括对ESM和TypeScript的支持。我们还探讨了使用Rust编写Lambda函数的优势,包括性能提升和冷启动时间的缩短。同时,我们也讨论了学习Rust的成本以及相关的生态系统支持。最后,我们还比较了AWS Heroes和Microsoft MVP项目,并讨论了这两个项目提供的不同福利和机会。

Deep Dive

Chapters
Luciano Mammino discusses his background in full-stack web development and the origin of Middy, a middleware engine for AWS Lambda. He explains how Middy was created as an internal tool to manage code and abstract common concerns like validation and authentication, similar to Express.js. After the company shut down, Middy was open-sourced and gained popularity, with Will taking over as the main maintainer.
  • Middy was created to address common code concerns in Lambda functions, similar to Express.js.
  • Middy was initially an internal tool before being open-sourced.
  • Will is currently the main maintainer of Middy, having taken over from Luciano.

Shownotes Transcript

Thank you to Hookdeck for sponsoring this episode. If you're looking to level-up your event-driven architecture, then check out their serverless event gateway at hookdeck.com/theburningmonk) and help support this channel.AWS Serverless Hero Luciano Mammino shares the history of Middy, the popular middleware engine for AWS Lambda functions; why he's sold on writing Lambda functions in Rust and why you should too!Links from the episode:

  • AWS Bites channel)
  • Middy)
  • How to sponsor Middy)
  • Crafting Lambda Functions in Rust)
  • Easy mode Rust)
  • Using Node.js ES modules and top-level await in AWS Lambda)
  • Using Middy with Typescript)
  • Ep97 on LLRT) (the superfast JavaScript runtime for Lambda)

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