Transcript
A (0:00)
Hello and welcome to aws bytes episode 139. I'm Owen and I'm joined again by Luciano. Building a new API on AWS presents you with a lot of options. There's tons of frameworks out there for any language you can imagine, but what happens when you decide to implement some or all of that API with AWS Lambda? It can bring some benefits, but there are a few head scratching considerations. Not all API frameworks are designed with AWS Lambda in mind. There is one actually, that is and today we're going to revisit power tools for AWS Lambda and dive into the amazing REST API support it offers, specifically covering the Python version of the library. We've been using this framework a lot and really want to share how it makes API development much faster while still giving you all the features you want like routing, validation, open API support, middleware and more. So let's get started. AWS Bytes is brought to you by Fourtheorem. If you want fast modern APIs with great developer experience, Fourtheorem is your partner. We'll collaborate with you to ensure you have great performance, security, scalability and most importantly, satisfied API users. Reach out on LinkedIn, BlueSky or through4Ethereum.com all of our details are in the description. You don't always have to use lambda for APIs, of course, there's lots of options out there. Before we get into the Lambda story, if you're running on a server or container, what frameworks would you consider?
B (1:23)
Yes, so I am a big fan of Node js, as many people are probably aware. So in Node js, the most famous web framework is probably Express has been around since almost forever since Node JS existed. Although I have to say in the recent years since Fastify came out, I think it's a slightly modern take on Express and much more performant I think has a nicer developer experience. So these days if I have to pick a more traditional web framework for Node js, probably Fastify will be my first choice. And I've been intrigued by a new framework came out I think last year and it's called Hono, you might have heard of it because it's quite interesting in a way that it's very minimal, but at the same time it's built with distribution in mind, I could say, because they made it work with effectively every major JavaScript runtime. So it works in Node, it works in Ban, it works in Deno, and also it can work in multiple environments when it comes to picking for instance a serverless. So to Speak environment. Like it can work well in Lambda, it works well in Cloudflare workers and I heard people trying it in all sorts of environments and everyone says just works out of the box. So could be an option, you can run it in Lambda if that's your thing. But of course we'll talk about the differences between running a more traditional web framework in Lambda and using something like Power tools. If we have to pick other languages, people might be aware that I also like Rust and in Rust there is still a little bit early I would say, because Rust is such a newer language and the ecosystem isn't as developed as Node JS or Python.
