Databases · head to head
AWS KMS vs Dgraph

AWS KMS
Databases
Managed encryption key service used by most AWS storage and database services
- From
- $1/month
- Free plan
- No

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
- Dgraph has a free plan, then $39/mo; AWS KMS starts at $1/mo.
- Only AWS KMS lists customer managed keys; only Dgraph lists apache 2.0 licence.
- Where AWS KMS falls short: every decrypt call is a billed request, and workloads that call KMS for each record can accumulate millions of billable requests.
How do AWS KMS and Dgraph differ?
AWS KMS and Dgraph differ on starting price ($1/month against Free), pricing model and free tier (No against Yes). Only the attributes on which AWS KMS and Dgraph actually diverge.
Not yet recorded: category for AWS KMS, founded for AWS KMS.
Which features does each one have?
They share no listed features; 6 appear only for AWS KMS 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 KMS
- Customer managed keys
- Service integration
- Automatic rotation
- Custom key stores
- CloudTrail logging
- Envelope encryption
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 KMS is most often brought in for signing artefacts or JWTs with asymmetric keys that never leave the HSM. The jobs each tool is most often brought in to do.
AWS KMS
- Meeting a compliance requirement for customer-controlled encryption keys on S3 and RDSnot Dgraph
- Signing artefacts or JWTs with asymmetric keys that never leave the HSMnot Dgraph
- Encrypting application secrets and data keys with envelope encryptionnot Dgraph
- Separating key administrators from data users with key policies and audit logsnot 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 KMS
- A knowledge graph that outgrew a single machine and needs storage distributed across nodes without a per-core licence negotiationnot AWS KMS
- Recommendation or fraud-detection features that traverse several hops at request time, where a relational join chain has become the bottlenecknot AWS KMS
- Teams that want a graph database they can read, fork and self-host under a permissive licence rather than a source-available onenot AWS KMS
Where do AWS KMS and Dgraph fall short?
AWS KMS's most cited limit: per-account request quotas can throttle high-volume workloads, forcing data key caching or architectural workarounds. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.
AWS KMS
- Cost grows with key count, so organisations that create one key per tenant or per object class pay $1 per month for each one, including the keys they forgot
- Every decrypt call is a billed request, and workloads that call KMS for each record can accumulate millions of billable requests
- Per-account request quotas can throttle high-volume workloads, forcing data key caching or architectural workarounds
- Keys are tied to AWS, so using the same keys with other clouds or on-premises systems needs external key stores or a separate tool such as HashiCorp Vault
- Key policies and grants interact with IAM in non-obvious ways, and a misconfigured policy can lock administrators out of a key
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 KMS and Dgraph cost?
AWS KMS starts at $1/mo; Dgraph has a free plan, with paid plans from $39/mo. Plan by plan below, from each vendor's own pricing page.
AWS KMS
$1/month- Customer managed key$1/mo
- $1 per key per month, prorated hourly
- Same price for symmetric, asymmetric, HMAC and multi-Region keys
- First and second rotation each add $1 per month
- RequestsOn request
- $0.03 per 10,000 requests
- 20,000 free requests per month
- $0.15 per 10,000 for most asymmetric requests, $12.00 per 10,000 for RSA GenerateDataKeyPair
Dgraph
Free- CommunityFree
- Native GraphQL
- Graph queries
- Full-text search
- Cloud$39/mo
- Managed service
- Auto-scaling
- Enterprise support
Which should you pick?
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 KMS or Dgraph better?
- It depends on the job. AWS KMS fits meeting a compliance requirement for customer-controlled encryption keys on S3 and RDS; 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 KMS starts at $1/month and Dgraph at Free.
- Which is cheaper, AWS KMS or Dgraph?
- Dgraph has a free tier; the other does not. Paid plans start at $1/month for AWS KMS and Free for Dgraph.
- Does AWS KMS or Dgraph run on more platforms?
- AWS KMS runs on Web. Dgraph runs on Linux, macOS, Self-hosted, Web.
- Can I use Dgraph for free?
- Yes. Dgraph has a free tier, so you can try it without paying. AWS KMS starts at $1/month.
- What is AWS KMS best used for?
- AWS KMS is most often used for meeting a compliance requirement for customer-controlled encryption keys on s3 and rds, signing artefacts or jwts with asymmetric keys that never leave the hsm, encrypting application secrets and data keys with envelope encryption, separating key administrators from data users with key policies and audit logs. Of those, meeting a compliance requirement for customer-controlled encryption keys on s3 and rds and signing artefacts or jwts with asymmetric keys that never leave the hsm are not what Dgraph is typically brought in for.
- What can AWS KMS do that Dgraph cannot?
- AWS KMS covers Customer managed keys, Service integration, Automatic rotation, Custom key stores. Dgraph covers Apache 2.0 licence, Generated GraphQL API, DQL query language, Predicate sharding.
Answered from the vendors’ own pages
AWS KMS: How much does AWS KMS cost?
$1 per month per customer managed key, $0.03 per 10,000 requests, and a free tier of 20,000 requests per month, per the AWS pricing page.
Dgraph: 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 KMS: Are AWS managed keys free?
Keys that AWS services create on your behalf (AWS managed keys) have no monthly fee; usage charges for requests may still apply as shown on the pricing page.
Dgraph: 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 KMS: What is the difference between KMS and CloudHSM?
KMS is a multi-tenant key service integrated with AWS services. CloudHSM gives you dedicated single-tenant HSMs, and in the AWS example a two-HSM cluster costs $1.60 per HSM per hour.
Dgraph: 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 KMS vs HashiCorp Vault
- AWS KMS vs Baffle
- AWS KMS vs Enpass
- AWS KMS vs Mullvad VPN
- AWS KMS vs IVPN
- AWS KMS vs Passbolt
- AWS KMS vs LastPass
- AWS KMS vs Private Internet Access
- AWS KMS vs TunnelBear
- AWS KMS vs Eagle Eye Networks
- AWS KMS vs Rhombus Systems
- AWS KMS vs Genetec Security Center
- AWS KMS vs Proofpoint Core Email Protection
- AWS KMS vs Rapid7 Incident Command
- AWS KMS vs Scalefusion UEM
- AWS KMS vs ServiceNow Security Operations
- AWS KMS vs Silent Eight
- AWS KMS vs Sophos Firewall
- AWS KMS vs ArangoDB
- AWS KMS vs Neo4j
- AWS KMS vs Azure Cosmos DB
- AWS KMS vs SurrealDB
- AWS KMS vs Elasticsearch
- AWS KMS vs Couchbase
- AWS KMS vs Cassandra
- AWS KMS vs Aerospike
- AWS KMS vs Firebase Realtime Database
- AWS KMS vs ScyllaDB
- AWS KMS vs FaunaDB
- AWS KMS vs RavenDB
- AWS KMS vs Estuary
- AWS KMS vs Materialize
- AWS KMS vs Memcached
- AWS KMS vs Milvus
- AWS KMS vs SQLite
- AWS KMS vs TiDB
- Dgraph vs HashiCorp Vault
- Dgraph vs Baffle
- Dgraph vs Enpass
- Dgraph vs Mullvad VPN
- Dgraph vs IVPN
- Dgraph vs Passbolt
- Dgraph vs LastPass
- Dgraph vs Private Internet Access
- Dgraph vs TunnelBear
- Dgraph vs Eagle Eye Networks
- Dgraph vs Rhombus Systems
- Dgraph vs Genetec Security Center
- Dgraph vs Proofpoint Core Email Protection
- Dgraph vs Rapid7 Incident Command
- Dgraph vs Scalefusion UEM
- Dgraph vs ServiceNow Security Operations
- Dgraph vs Silent Eight
- Dgraph vs Sophos Firewall
- 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 Estuary
- Dgraph vs Materialize
- Dgraph vs Memcached
- Dgraph vs Milvus
- Dgraph vs SQLite
- Dgraph vs TiDB
