Announcing AWS Lambda Web Functions

Announcing AWS Lambda Web Functions

a new form factor that lets you run standard HTTP web applications on Lambda without rewriting your code into an event handler

:eyes:

You can take a standard port-listening server built with Express, Hono, Fastify, Next.js, or any Node.js framework

-_-

You’ve lived to see another day, Mangum.

But seriously, this is a great direction for Lambda and I’m looking forward to Python support.

I deploy a fair number of Python WSGI applications to Lambda Function URLs using serverless-wsgi as a bridge. It’s not appropriate for large projects, but for small projects it works well enough and is simpler to manage than containers.

Web Functions only supports Node currently, but I’d definitely be migrating over when/if they announce Python support.

Web Functions improves the private-origin experience with CloudFront. With this launch, you attach CloudFront origin access control (OAC) to a Web Function endpoint instead.

This is nice to see. OAC in Function URLs currently only supports GET requests, so I generally have to leave my Function URL public when deploying to Cloudfront, which I would rather not do.

Curious why not just migrate your apps to node ? Do you have some critical python dependencies ?

Probably costs more for a Python expert team to learn Node well enough to make sure everything is sane than it does to pay their extra costs

they are cooking again

How is this better than using the Lambda Web Adapter that supports every language?

And there are open source solutions for every language that don’t require docker.

The concurrency (up to 128) is an interesting addition.

Madlads finally did it. If Java and Python get support I might switch over a few services from Fargate

I’m guessing because in order for Lambda Web Adapter (which is new to me; thanks for the enlightenment) to enable multi-concurrency, you have to use managed instances. Which I think means you’re paying for EC2 instances to run.

These Web Functions appear to support the multi-concurrency without needing managed instances. So get the true pay as you go model.

Not managed instances - it’s one lambda call per event just like any other lambda

This shouldn’t be an argument with LLMs

Looks like Cloudflare workers but with a better DX.

CloudFlare workers are simple enough to get up and running, but Lambda Web Functions somehow seem even easier.

This feels like an direct answer to Cloudflare workers

Because he’s not a JS dweeb

None of that matters at all anymore lol

Blows my mind that Reddit still thinks you need people to write code

This is a big one - and nice to see something not entirely honed in AI. :smiling_face:

What looks great:

  • Many workloads can now skip API Gateway entirely.
  • Single Lambda can handle concurrent requests - of course this totally changes the current Lambda HTTP programming model - now you’re no longer working with one invoke/one request - bit of a mindshift here - maybe not so much for JavaScript, but if this comes to Golang/etc. now you might need to be sync/mutex aware.
  • Love the first class support for CloudFront OAC controls - you can simply wire up a CloudFront CDN → Lambda web function - knowing only requests can originate from CloudFront. For me this would be the future architecture model I’d look at for API services - replace API Gateway entirely with CloudFront for top level HTTP path routing, directly to one or more Lambda web functions only.

Winner winner this one.

dang usually they dont launch something this big so soon to reinvent.

no free tier?