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
The concept of serverless architecture was first popularized by AWS Lambda in 2014.
Firecracker microVM is the lightweight virtual machine technology underlying AWS Lambda.
Firecracker is the underlying technology of AWS Lambda.
Timeline (last 90 days)
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.
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.
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.
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.
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.
The default concurrency limit per Lambda account is relatively low, so under burst traffic requests either queue or trigger more cold starts.
Lambda bills by configured memory and run time, with the cost formula: configured memory (GB) × execution duration (seconds) × unit price (GB-seconds).
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.
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.
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.
40 more timeline events
All Facts (20)
The concept of serverless architecture was first popularized by AWS Lambda in 2014.
90%VerifiedFirecracker microVM is the lightweight virtual machine technology underlying AWS Lambda.
90%VerifiedFirecracker is the underlying technology of AWS Lambda.
75%VerifiedAWS Lambda is a serverless computing service that adopts an event-driven model and charges based on the actual number of invocations.
75%VerifiedServerless 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%VerifiedFirecracker 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%Unverified2022年后随着AWS Lambda、Vercel等无服务器基础设施普及以及OpenAI API商业化,出现了大量基于LLM的Micro-SaaS产品
75%UnverifiedFirecracker microVMs are used by AWS Lambda and Fly.io.
60%UnverifiedThe S3 API has given rise to a large toolchain ecosystem, including the AWS CLI, SDKs for various languages, s3cmd, rclone, and others.
60%UnverifiedFirecracker 最初由 AWS 为 Lambda 和 Fargate 服务开发
60%UnverifiedLambda 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%UnverifiedAWS Lambda is positioned for short-duration, event-driven lightweight computing, with strict upper limits on memory and run time.
50%UnverifiedAs an open-source large model, Qwen's memory and compute requirements, even for the smallest version, far exceed Lambda's normal workloads.
50%UnverifiedLambda bills by configured memory and run time, with the cost formula: configured memory (GB) × execution duration (seconds) × unit price (GB-seconds).
50%UnverifiedLambda 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%UnverifiedThe default concurrency limit per Lambda account is relatively low, so under burst traffic requests either queue or trigger more cold starts.
50%UnverifiedThe 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%UnverifiedAWS 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%UnverifiedLarge-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%UnverifiedThe 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%