[KongchangAI]
ProductLambda / Amazon Lambda

AWS Lambda

A serverless computing service offered by Amazon AWS, introduced in 2014 as a pioneer of the event-driven Function-as-a-Service (FaaS) model. It supports multiple programming languages including Python, Node.js, and Java, and operates within regional data centers.

Core Facts

Timeline (last 90 days)

Nov 25

Someone deployed the Qwen large language model to run on AWS Lambda serverless functions, under the project title "Serving Qwen via AWS Lambdas for fun and 80x negative profit," and posted it on Hacker News.

Unverified50%
Nov 25

Before considering serverless functions such as Lambda to host model inference, three calculations should be made: cold-start frequency, the product of memory usage and duration per inference, and the cost ceiling at peak concurrency; if any one of them does not pay off, one should switch to containerized deployment or a managed inference service.

Unverified50%
Nov 25

The serverless billing model is designed for short tasks, and applying it to long-duration, memory-heavy AI inference makes the economics look very poor.

Unverified50%
Nov 25

The cost side of running a large model on Lambda includes invocation-count charges, run-time charges calculated in GB-seconds, and the extra overhead of raising the memory configuration to support the model; the revenue side is almost zero.

Unverified50%
Nov 25

Large-model inference is a typical "long-duration, high-memory, low-QPS" workload, exactly the opposite of the assumptions under which Lambda was designed for "short-duration, lightweight, high-concurrency" use.

Unverified50%
Nov 25

The default concurrency limit per Lambda account is relatively low, so under burst traffic requests either queue or trigger more cold starts.

Unverified50%
Nov 25

Lambda bills by configured memory and run time, with the cost formula: configured memory (GB) × execution duration (seconds) × unit price (GB-seconds).

Unverified50%
Nov 25

AWS offers Provisioned Concurrency to pre-warm Lambda instances, but provisioned instances are continuously billed, effectively turning pay-as-you-go into always-on billing.

Unverified50%
Nov 25

Lambda cold starts for ordinary APIs typically range from hundreds of milliseconds to several seconds; large-model functions must load several GB of model weights during initialization, and loading can take tens of seconds or even longer.

Unverified50%
Nov 25

Lambda cold start refers to the process by which a function instance is created from scratch until it can handle requests, including allocating the execution environment, downloading the code package, initializing the runtime, and then executing the handler.

Unverified50%

40 more timeline events

All Facts (20)

Verified

The concept of serverless architecture was first popularized by AWS Lambda in 2014.

90%
Verified

Firecracker microVM is the lightweight virtual machine technology underlying AWS Lambda.

90%
Verified

Firecracker is the underlying technology of AWS Lambda.

75%
Verified

AWS Lambda is a serverless computing service that adopts an event-driven model and charges based on the actual number of invocations.

75%
Verified

Serverless scheduled triggers (such as AWS EventBridge Scheduler + Lambda and Google Cloud Scheduler + Cloud Run) are fully managed, billed per execution, and natively support retries, but have the drawbacks of cold start latency and complex debugging pipelines.

65%
Verified

Firecracker microVM was developed and open-sourced by AWS, is widely used in serverless platforms such as AWS Lambda, and can achieve a startup time as low as 125 milliseconds.

65%
Unverified

2022年后随着AWS Lambda、Vercel等无服务器基础设施普及以及OpenAI API商业化,出现了大量基于LLM的Micro-SaaS产品

75%
Unverified

Firecracker microVMs are used by AWS Lambda and Fly.io.

60%
Unverified

The S3 API has given rise to a large toolchain ecosystem, including the AWS CLI, SDKs for various languages, s3cmd, rclone, and others.

60%
Unverified

Firecracker 最初由 AWS 为 Lambda 和 Fargate 服务开发

60%
Unverified

Lambda cold starts for ordinary APIs typically range from hundreds of milliseconds to several seconds; large-model functions must load several GB of model weights during initialization, and loading can take tens of seconds or even longer.

50%
Unverified

AWS Lambda is positioned for short-duration, event-driven lightweight computing, with strict upper limits on memory and run time.

50%
Unverified

As an open-source large model, Qwen's memory and compute requirements, even for the smallest version, far exceed Lambda's normal workloads.

50%
Unverified

Lambda bills by configured memory and run time, with the cost formula: configured memory (GB) × execution duration (seconds) × unit price (GB-seconds).

50%
Unverified

Lambda cold start refers to the process by which a function instance is created from scratch until it can handle requests, including allocating the execution environment, downloading the code package, initializing the runtime, and then executing the handler.

50%
Unverified

The default concurrency limit per Lambda account is relatively low, so under burst traffic requests either queue or trigger more cold starts.

50%
Unverified

The author used "80x negative profit" to describe the severe inversion between cost and revenue of running a large model on Lambda, implying that the approach is economically infeasible.

50%
Unverified

AWS offers Provisioned Concurrency to pre-warm Lambda instances, but provisioned instances are continuously billed, effectively turning pay-as-you-go into always-on billing.

50%
Unverified

Large-model inference is a typical "long-duration, high-memory, low-QPS" workload, exactly the opposite of the assumptions under which Lambda was designed for "short-duration, lightweight, high-concurrency" use.

50%
Unverified

The cost side of running a large model on Lambda includes invocation-count charges, run-time charges calculated in GB-seconds, and the extra overhead of raising the memory configuration to support the model; the revenue side is almost zero.

50%

Source Articles