Cloud · head to head
AWS Lambda vs Dgraph

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

Dgraph
Databases
Apache 2.0 distributed graph database written in Go, maintained by Hypermode, queried through GraphQL or its own DQL language.
- From
- Free
- Free plan
- Yes
The short version
- AWS Lambda is a serverless compute service.
- AWS Lambda is free; Dgraph starts at $39/mo.
- Only AWS Lambda lists event-driven execution; only Dgraph lists apache 2.0 licence.
- 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 Dgraph differ?
AWS Lambda and Dgraph differ on pricing model (Usage-based against Freemium), platforms and category (Cloud against Databases). Only the attributes on which AWS Lambda and Dgraph actually diverge.
| Attribute | AWS Lambda | Dgraph |
|---|---|---|
| Pricing model | Usage-based | Freemium |
| Platforms | Web, API | Linux, macOS, Self-hosted, Web |
| Category | Cloud | Databases |
| Founded | 2014 | 2016 |
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 10 only for Dgraph. 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 Dgraph
- Apache 2.0 licence
- Generated GraphQL API
- DQL query language
- Predicate sharding
- Raft replication
- Distributed ACID transactions
- Written in Go
- Full-text and geo indexing
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 Dgraph
- API backends behind API Gatewaynot Dgraph
- Processing S3, DynamoDB, SQS and Kinesis eventsnot Dgraph
- Scheduled jobs without a always-on instancenot Dgraph
- Edge compute through Lambda@Edgenot Dgraph
Dgraph
- An application whose core data is a graph, such as permissions, social connections or product relationships, where the frontend already consumes GraphQLnot AWS Lambda
- A knowledge graph that outgrew a single machine and needs storage distributed across nodes without a per-core licence negotiationnot AWS Lambda
- Recommendation or fraud-detection features that traverse several hops at request time, where a relational join chain has become the bottlenecknot AWS Lambda
- Teams that want a graph database they can read, fork and self-host under a permissive licence rather than a source-available onenot AWS Lambda
Where do AWS Lambda and Dgraph 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
Dgraph
- Sharding is by predicate, so a single very hot predicate lives entirely in one Raft group and cannot be split further; adding nodes does not relieve it and the fix is a data model change
- Stewardship passed from Dgraph Labs to Hypermode after the original company stopped operating independently, so anyone building on it is betting on a second custodian rather than on the original team's roadmap
- The GraphQL layer is generated and opinionated, so anything it does not express drops you into DQL, which is a second language your team must learn and which no other database speaks
- The community is a fraction of Neo4j's, so operational answers, tuning experience, hiring and third-party tooling are all thinner, and unusual failure modes in a Zero and Alpha cluster leave you reading source rather than a forum
- There is no portable graph standard to migrate to; Cypher, Gremlin and SPARQL are all different query models, so the schema and every query is a rewrite if you later leave, and that cost grows with the application
How much do AWS Lambda and Dgraph cost?
AWS Lambda is free to use; Dgraph has a free plan, with paid plans from $39/mo. 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
Dgraph
Free- CommunityFree
- Native GraphQL
- Graph queries
- Full-text search
- Cloud$39/mo
- Managed service
- Auto-scaling
- Enterprise support
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 Dgraph if
- You need apache 2.0 licence.
- You want to start without paying.
- You work on Linux, macOS, Self-hosted, Web.
- You also want generated graphql api.
Questions people ask
- Is AWS Lambda or Dgraph better?
- It depends on the job. AWS Lambda fits event-driven functions without managing servers; Dgraph fits an application whose core data is a graph, such as permissions, social connections or product relationships, where the frontend already consumes GraphQL. AWS Lambda starts at Free and Dgraph at Free.
- Which is cheaper, AWS Lambda or Dgraph?
- AWS Lambda starts at Free and Dgraph at Free.
- Does AWS Lambda or Dgraph run on more platforms?
- AWS Lambda runs on Web, API. Dgraph runs on Linux, macOS, Self-hosted, 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 Dgraph is typically brought in for.
- What can AWS Lambda do that Dgraph cannot?
- AWS Lambda covers Function-as-a-Service, Event-driven execution, Auto-scaling, Pay-per-use. Dgraph covers Apache 2.0 licence, Generated GraphQL API, DQL query language, Predicate sharding.
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.
SourceDgraph: Is Dgraph open source?
Yes. The current repository is Apache 2.0, which is a permissive OSI licence, and the project is at v25 under Hypermode's maintenance.
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.
SourceDgraph: Is it really GraphQL?
It serves a generated GraphQL API, which is real GraphQL for clients. Its native language, DQL, resembles GraphQL syntactically but is Dgraph's own language and is not the GraphQL specification.
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).
SourceDgraph: How does it compare to Neo4j?
Neo4j has the larger ecosystem, Cypher, and far more operational precedent. Dgraph distributes storage across nodes by default and gives you a GraphQL endpoint without writing resolvers. The choice usually turns on whether you need horizontal scale and a GraphQL surface more than you need ecosystem depth.
Dgraph: What does a production cluster look like?
At minimum a set of Zero nodes for coordination and a replicated set of Alpha nodes for data, typically three of each for fault tolerance, which is a meaningfully larger operational footprint than a single graph server.
Dgraph: Who maintains it now?
Hypermode. Dgraph Labs, the original company, no longer operates it, and that change of custodian is the main non-technical risk to weigh.
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 ArangoDB
- AWS Lambda vs Neo4j
- AWS Lambda vs Azure Cosmos DB
- AWS Lambda vs SurrealDB
- AWS Lambda vs Elasticsearch
- AWS Lambda vs Couchbase
- AWS Lambda vs Cassandra
- AWS Lambda vs Aerospike
- AWS Lambda vs Firebase Realtime Database
- AWS Lambda vs ScyllaDB
- AWS Lambda vs FaunaDB
- AWS Lambda vs RavenDB
- AWS Lambda vs Nile
- AWS Lambda vs Readyset
- AWS Lambda vs SAP HANA
- AWS Lambda vs Vertica
- AWS Lambda vs Airtable
- AWS Lambda vs Supabase
- Dgraph vs Google Cloud Run
- Dgraph vs Deno Deploy
- Dgraph vs Azure Functions
- Dgraph vs Serverless Framework
- Dgraph vs Cerebrium
- Dgraph vs Koyeb
- Dgraph vs Beam Cloud
- Dgraph vs Lambda
- Dgraph vs Porter
- Dgraph vs Terragrunt
- Dgraph vs Vultr
- Dgraph vs Heroku
- Dgraph vs OVHcloud
- Dgraph vs Rancher
- Dgraph vs HAProxy
- Dgraph vs IBM Cloud
- Dgraph vs Northflank
- Dgraph vs K3s
- Dgraph vs ArangoDB
- Dgraph vs Neo4j
- Dgraph vs Azure Cosmos DB
- Dgraph vs SurrealDB
- Dgraph vs Elasticsearch
- Dgraph vs Couchbase
- Dgraph vs Cassandra
- Dgraph vs Aerospike
- Dgraph vs Firebase Realtime Database
- Dgraph vs ScyllaDB
- Dgraph vs FaunaDB
- Dgraph vs RavenDB
- Dgraph vs Nile
- Dgraph vs Readyset
- Dgraph vs SAP HANA
- Dgraph vs Vertica
- Dgraph vs Airtable
- Dgraph vs Supabase
