Cloud · head to head
AWS Lambda vs Trino

AWS Lambda
Cloud
Run code without thinking about servers
- From
- Free
- Free plan
- Yes

Trino
Databases
A distributed SQL engine that queries data where it already lives, across object storage, warehouses and operational databases.
- From
- Free
- Free plan
- Yes
The short version
- AWS Lambda is a serverless compute service.
- Both are free.
- Only AWS Lambda lists multiple languages; only Trino lists federated querying.
- Where AWS Lambda falls short: provisioned concurrency, used to avoid cold starts, is charged separately at $0.0000041667 per GB-second whether or not the function runs.
How do AWS Lambda and Trino differ?
AWS Lambda and Trino differ on pricing model (Usage-based against Open-source), platforms (Web, API against Web) and category (Cloud against Databases). Only the attributes on which AWS Lambda and Trino actually diverge.
| Attribute | AWS Lambda | Trino |
|---|---|---|
| Pricing model | Usage-based | Open-source |
| Platforms | Web, API | Web |
| Category | Cloud | Databases |
| Founded | 2014 | 2019 |
Identical on both: starting price (Free), free tier (Yes).
Which features does each one have?
They share no listed features; 20 appear only for AWS Lambda and 8 only for Trino. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.
Only in AWS Lambda
- Function-as-a-Service
- Event-driven execution
- Auto-scaling
- Pay-per-use
- Multiple languages
- Concurrency limits
- Dead Letter Queues
- Environment variables
Only in Trino
- Federated querying
- Connector architecture
- Predicate and aggregation pushdown
- Massively parallel execution
- Fault-tolerant execution
- Resource groups
- Iceberg and Delta table support
- Standard client protocols
What is each one used for?
AWS Lambda is most often brought in for event-driven functions without managing servers. The jobs each tool is most often brought in to do.
AWS Lambda
- Event-driven functions without managing serversnot Trino
- API backends behind API Gatewaynot Trino
- Processing S3, DynamoDB, SQS and Kinesis eventsnot Trino
- Scheduled jobs without a always-on instancenot Trino
- Edge compute through Lambda@Edgenot Trino
Trino
- Ad hoc analysis that spans a data lake and one or more operational databases, without building an ingestion pipeline firstnot AWS Lambda
- Serving a BI tool a single SQL endpoint over an estate that is actually several separate storage systemsnot AWS Lambda
- Querying Iceberg or Delta tables on object storage interactively, as the compute layer of a lakehousenot AWS Lambda
- Investigating whether a dataset is worth ingesting, by querying it in place before committing to a pipeline for itnot AWS Lambda
Where do AWS Lambda and Trino fall short?
AWS Lambda's most cited limit: ephemeral storage beyond the included 512 MB is metered. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.
AWS Lambda
- Billed on two axes at once, $0.20 per million requests plus $0.0000166667 per GB-second of duration, so memory settings change the bill as much as traffic does
- Provisioned concurrency, used to avoid cold starts, is charged separately at $0.0000041667 per GB-second whether or not the function runs
- Ephemeral storage beyond the included 512 MB is metered
- Lambda@Edge costs $0.60 per million requests, three times the standard request rate
- VPC use and cross-region data transfer carry EC2 charges on top
Trino
- Trino stores nothing and computes no statistics of its own, so the plan it produces is only as good as the partitioning, file sizes and table statistics on the source; a Hive table of thousands of small files or a lake with no stats produces a slow query the engine cannot improve
- Federated queries pull data out of the systems they touch, so a join between a lake table and a production Postgres can put a full table scan onto an OLTP database that other applications depend on, and the person who wrote the query will not see the incident it causes
- Releases come roughly every one to two weeks with no community long-term support line, and deprecations arrive quickly, so you either dedicate someone to keeping current or you buy Starburst Enterprise for a supported long-term version
- It is memory-based and disk spilling was deprecated in favour of fault-tolerant execution, so a query exceeding cluster memory fails outright rather than degrading; enabling fault-tolerant execution requires an external exchange store on object storage and makes queries measurably slower
- It is a query engine and not a warehouse: there is no built-in job scheduling, no incremental materialised view maintenance and no transformation framework, so producing curated tables still needs dbt or an equivalent layer that somebody has to own
- The 2020 fork split the ecosystem, so documentation, connectors, Stack Overflow answers and vendor material written before then describe PrestoDB, which is now a different project with different behaviour, and following the wrong one wastes real time
How much do AWS Lambda and Trino cost?
AWS Lambda is free to use; Trino is free to use. Plan by plan below, from each vendor's own pricing page.
AWS Lambda
Free- Free TierFree
- 1M free requests/month
- 400,000 GB-seconds/month
- Always free
Trino
Free- Open source (Apache License)Free
Which should you pick?
Choose AWS Lambda if
- You need function-as-a-service.
- You want to start without paying.
- You work on Web, API.
- You also want event-driven execution.
Choose Trino if
- You need federated querying.
- You want to start without paying.
- You also want connector architecture.
Questions people ask
- Is AWS Lambda or Trino better?
- It depends on the job. AWS Lambda fits event-driven functions without managing servers; Trino fits ad hoc analysis that spans a data lake and one or more operational databases, without building an ingestion pipeline first. AWS Lambda starts at Free and Trino at Free.
- Which is cheaper, AWS Lambda or Trino?
- AWS Lambda starts at Free and Trino at Free.
- Does AWS Lambda or Trino run on more platforms?
- AWS Lambda runs on Web, API. Trino runs on Web.
- Can I use AWS Lambda for free?
- Both have a free tier, so you can try either at no cost before committing.
- What is AWS Lambda best used for?
- AWS Lambda is most often used for event-driven functions without managing servers, api backends behind api gateway, processing s3, dynamodb, sqs and kinesis events, scheduled jobs without a always-on instance. Of those, event-driven functions without managing servers and api backends behind api gateway are not what Trino is typically brought in for.
- What can AWS Lambda do that Trino cannot?
- AWS Lambda covers Function-as-a-Service, Event-driven execution, Auto-scaling, Pay-per-use. Trino covers Federated querying, Connector architecture, Predicate and aggregation pushdown, Massively parallel execution.
Answered from the vendors’ own pages
AWS Lambda: Is there a free tier for AWS Lambda?
Yes. AWS Lambda offers a free tier including 1 million requests per month, 400,000 GB-seconds per month, and 100 GB monthly response streaming.
SourceTrino: What is the difference between Trino and Presto?
They share an origin. The original creators left Meta and renamed their fork from PrestoSQL to Trino in December 2020; PrestoDB continues separately under the Linux Foundation. They have diverged in features, connectors and SQL behaviour, so material written for one may not apply to the other.
AWS Lambda: How is AWS Lambda charged?
Lambda charges $0.20 per million requests. Duration charges are $0.0000166667 per GB-second for x86 (up to 6 billion GB-seconds/month in US East Ohio with tiered pricing). Ephemeral storage over the included 512 MB costs $0.0000000309 per GB-second. Provisioned Concurrency costs $0.0000041667 per GB-second with a 5-minute minimum.
SourceTrino: Does Trino replace my data warehouse?
Not on its own. It is compute without storage, scheduling or transformation. Paired with Iceberg or Delta on object storage and something like dbt for modelling it can serve as a lakehouse; used alone it is a query layer over what you already have.
AWS Lambda: What are Lambda Durable Functions pricing?
Lambda Durable Functions include operations at $8.00 per million (start execution, steps, waits). Data written costs $0.25 per GB. Data retention is $0.15 per GB-month with configurable 1-90 day retention (default 14 days).
SourceTrino: Why is my federated query slow?
Usually because a connector could not push a filter or aggregation down, so Trino is pulling whole tables across the network to join them itself. The fix is usually better source-side partitioning or statistics, or ingesting that source rather than federating it.
Trino: What happens when a query runs out of memory?
It fails. Disk spilling was deprecated in favour of fault-tolerant execution, which checkpoints to an external exchange store such as S3 and lets long queries survive memory pressure and worker loss, at the cost of noticeably slower execution.
Trino: Is there commercial support?
Yes, from Starburst, which offers Starburst Enterprise with long-term supported releases and Starburst Galaxy as a managed service. The open source project itself has no long-term support line.
Related pages
Other head to heads
- AWS Lambda vs Google Cloud Run
- AWS Lambda vs Deno Deploy
- AWS Lambda vs Azure Functions
- AWS Lambda vs Serverless Framework
- AWS Lambda vs Cerebrium
- AWS Lambda vs Koyeb
- AWS Lambda vs Beam Cloud
- AWS Lambda vs Lambda
- AWS Lambda vs Porter
- AWS Lambda vs Terragrunt
- AWS Lambda vs Vultr
- AWS Lambda vs Heroku
- AWS Lambda vs OVHcloud
- AWS Lambda vs Rancher
- AWS Lambda vs HAProxy
- AWS Lambda vs IBM Cloud
- AWS Lambda vs Northflank
- AWS Lambda vs K3s
- AWS Lambda vs Dremio
- AWS Lambda vs Presto
- AWS Lambda vs Apache Hadoop
- AWS Lambda vs StarRocks
- AWS Lambda vs Apache Spark
- AWS Lambda vs DuckDB
- AWS Lambda vs Turso
- AWS Lambda vs Readyset
- AWS Lambda vs BigQuery
- AWS Lambda vs Apache Doris
- AWS Lambda vs RisingWave
- AWS Lambda vs LanceDB
- AWS Lambda vs Weaviate
- AWS Lambda vs ArangoDB
- AWS Lambda vs Chroma
- AWS Lambda vs Firestore
- AWS Lambda vs Microsoft SQL Server
- AWS Lambda vs Apache Pinot
- Trino vs Google Cloud Run
- Trino vs Deno Deploy
- Trino vs Azure Functions
- Trino vs Serverless Framework
- Trino vs Cerebrium
- Trino vs Koyeb
- Trino vs Beam Cloud
- Trino vs Lambda
- Trino vs Porter
- Trino vs Terragrunt
- Trino vs Vultr
- Trino vs Heroku
- Trino vs OVHcloud
- Trino vs Rancher
- Trino vs HAProxy
- Trino vs IBM Cloud
- Trino vs Northflank
- Trino vs K3s
- Trino vs Dremio
- Trino vs Presto
- Trino vs Apache Hadoop
- Trino vs StarRocks
- Trino vs Apache Spark
- Trino vs DuckDB
- Trino vs Turso
- Trino vs Readyset
- Trino vs BigQuery
- Trino vs Apache Doris
- Trino vs RisingWave
- Trino vs LanceDB
- Trino vs Weaviate
- Trino vs ArangoDB
- Trino vs Chroma
- Trino vs Firestore
- Trino vs Microsoft SQL Server
- Trino vs Apache Pinot
