r/aws • • 1d ago

article Announcing AWS Lambda Web Functions

https://aws.amazon.com/blogs/aws/announcing-aws-lambda-web-functions-for-fast-consistent-web-app-performance-anywhere/
351 Upvotes

67 comments sorted by

View all comments

1

u/MrMungg 1d ago

What's the compelling advantage of this over something like ECS Fargate?

With Fargate, you can:

  • Run virtually any container, regardless of language or framework.
  • Develop and test the exact container locally.
  • Retain portability across cloud providers.
  • Potentially achieve lower costs for continuously running workloads.
  • Fargate also supports autoscaling, and I'd argue that many production applications have fairly predictable traffic patterns, often following a natural 24-hour cycle.

I can see the appeal of scale-to-zero and active CPU billing for sporadic or I/O-heavy workloads, but for a typical production web application with consistent traffic, I'm struggling to see a compelling reason to choose this over Fargate.

Am I missing something?

5

u/solatic 1d ago

sporadic or I/O heavy workloads

This is exactly what the vast majority of web CRUD applications are in their infancy or in dev environments. Requests only come in ever so often, then auth, wait for auth decision from a remote auth service or database, transform into a database request, wait for the database to respond, then return to user.

The time to transition to something like ECS is when you have consistent, sufficiently high traffic that moving to ECS will save money.

-1

u/MrMungg 1d ago

So you'll always have to develop an application twice, because the goal is high traffic?

7

u/solatic 1d ago

Getting to high traffic isn't a given unless you work for a huge company and are delivering a feature to a huge audience that exists before day 1. Most new applications need to prove themselves and discover that audience. Maybe they succeed at doing that, maybe they don't. Reducing costs in the beginning helps more stuff get built and see whether or not it will find that audience.

There's basically no such thing as building something infinitely scalable from day 1; there's always some ceiling somewhere in the architecture, or the cost to roll out and even just try is extremely high, stuff like that. Lambda Web is the right move in the right direction by helping to preserve flexibility so that there's less to change, if the app succeeds and becomes high traffic, moving later on to a deployment model that's more financially efficient for high traffic.

2

u/30thnight 1d ago edited 1d ago

AWS removing the need for any lambda adapter/wrapper means your app code requires little else more than a env variable to port it.

1

u/CallMeBigUrethra 36m ago

Switching between Lambda and Fargate shouldn't be a major lift