AWS Lambda Web Functions

(aws.amazon.com)

36 points | by HatchedLake721 2 hours ago

6 comments

  • bob1029 34 minutes ago
    I strongly recommend never using functions as a service unless you genuinely have some client edge compute requirement that absolutely cannot be solved via some other means.

    Everything about running software is made more difficult this way. You might think it would make certain infrastructure aspects easier, but it just changes the semantics of the same problem. It's the same quantity of mess to clean up, but now it's in these really weird piles that are often much harder to access.

    > up to 128 concurrent requests per environment

    I am fairly confident I could support more capacity with a single t3a.nano instance.

    • badatnames 11 minutes ago
      These one-sided arguments come up every time there's a Lambda thread. They're useful and easily cheaper almost anywhere you have sparse compute or RAM requirements, even for heavyweight tasks like transcoding. A t3.nano meanwhile can simultaneously be overpriced ($3.50 for an idle task) and a bottleneck (30Mbit/s sustained network) in just as many places as a Lambda could be applied incorrectly.
    • vermilingua 14 minutes ago
      I seem to have had the opposite experience. Using Lambda (I can't speak for many of the other FaaS platforms) is so straightforward to me that there need to be some strong arguments for hosting code/containers in my projects.

      My guess is that the IaC is the special sauce that's missing; you do need to go all in with some IaC solution to make using Lambda easy, but it doesn't take a lot of it to make it slick.

      Cost/compute is obviously strictly worse for FaaS, but most web workloads don't _really_ need to be optimal.

  • jack_sunsetless 32 minutes ago
    Finally Lambda without the adapter layer.. Now please add .NET and Java with those concurrent requests
  • chaz6 40 minutes ago
    Being able to handle concurrent requests with one worker is nice. I hope this becomes available for Python too.
  • cowlevel 1 hour ago
    How is this different from a container?
    • paduc 5 minutes ago
      It’s one isolated process per request.

      In a container the memory/cpu is shared for all incoming requests.

      • ZiiS 1 minute ago
        It supports 128 simultaneous requests web function; and many more if they are serial. It also supports multiple processes per function.
    • kichik 41 minutes ago
      The scaling part. You don't need to do anything. It just runs as many instances of the Lambda as needed for you.
      • cowlevel 35 minutes ago
        Does Elastic Container Service not do that?
        • kichik 31 minutes ago
          No, not really. You can attach auto scaling to it. But it doesn't scale as fast. And it's not very straightforward to scale to zero. And you have to maintain all of it yourself.
          • oblio 26 minutes ago
            Fargate does, though. And it's been doing it for at least 5 years, if not more.
            • kichik 5 minutes ago
              Fargate, just like ECS, doesn't natively scale to zero. You can set the minimum number of instances to zero for both, but there is no native mechanism to scale it back to one when traffic arrives. And especially not one that would hold the connection until the container is ready. Not saying it's impossible... Just not native. And it would require extra resources. So the price won't scale to zero without something like Lambda in front of it.
    • Callumk77 1 hour ago
      Skip the docker part I guess? More approachable for new vibe-orientated developers
    • vends 1 hour ago
      [flagged]
  • HatchedLake721 2 hours ago
    looks like an answer to Cloudflare Workers
    • paduc 7 minutes ago
      Absolutely, and the offer is better in terms of DX (no need for an adapter) and it’s not limited to 128MB of memory.

      Exciting times, I can’t wait for Cloudflares response.

    • ZiiS 1 hour ago
      Isn't this a move in the other direction. Workers and traditional Lambda need to you write short lived event handlers; this is about running a standard server.
    • beastman82 52 minutes ago
      And appengine
      • cowsandmilk 34 minutes ago
        A response to App Engine 18 years after its release?
        • beastman82 30 minutes ago
          It's the same idea however you characterize it.
    • Imustaskforhelp 1 hour ago
      Also vercel, railway, render etc

      Cloudflare workers wasn’t always an 1:1 option for simple hosting (iirc) and people used to think it was more complicated than vercel etc but it has changed in recent years and right now they have made things smoother and simpler to compete with vercel and others.

      Now that AWS has entered into the field as well, given that vercel and others already build on top of AWS. It will be interesting to see how this all goes.

      I wonder if more og hyper scalers like say hetzner/ovh and others will also target this audience

  • quietFalcon 1 hour ago
    [dead]