Databases · head to head
Dgraph vs Heroku

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
- Heroku is a cloud platform as a service.
- Dgraph has a free plan, then $39/mo; Heroku starts at $5/mo.
- Only Dgraph lists apache 2.0 licence; only Heroku lists git-based deployment.
- Where Heroku falls short: there is no free dyno tier; the cheapest Eco dyno is $5 per month.
How do Dgraph and Heroku differ?
Dgraph and Heroku differ on starting price (Free against $5/month), pricing model (Freemium against Subscription) and free tier (Yes against No). Only the attributes on which Dgraph and Heroku actually diverge.
Which features does each one have?
They share no listed features; 10 appear only for Dgraph and 20 only for Heroku. 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 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
Only in Heroku
- Git-based deployment
- Buildpacks
- Dynos (containers)
- Add-ons marketplace
- Postgres database
- Environment variables
- Logging
- API
What is each one used for?
Heroku is most often brought in for application hosting. The jobs each tool is most often brought in to do.
Dgraph
- An application whose core data is a graph, such as permissions, social connections or product relationships, where the frontend already consumes GraphQLnot Heroku
- A knowledge graph that outgrew a single machine and needs storage distributed across nodes without a per-core licence negotiationnot Heroku
- Recommendation or fraud-detection features that traverse several hops at request time, where a relational join chain has become the bottlenecknot Heroku
- Teams that want a graph database they can read, fork and self-host under a permissive licence rather than a source-available onenot Heroku
Heroku
- Application hostingnot Dgraph
- Database as a servicenot Dgraph
- CI/CD pipelinesnot Dgraph
- API deploymentnot Dgraph
Where do Dgraph and Heroku fall short?
Heroku's most cited limit: there is no free dyno tier; the cheapest Eco dyno is $5 per month. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.
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
Heroku
- There is no free dyno tier; the cheapest Eco dyno is $5 per month
- Eco dynos sleep after 30 minutes of inactivity, are restricted to personal accounts and allow only 2 process types
- Free SSL and 10 process types start at the Basic dyno at $7 per month
- Private and Shield dyno types require a Private Space, which is billed on top of the dynos
- Private Space dynos start at $250 per month for Private-M and $500 per month for Private-L
- Dyno prices are per dyno per month, so an app with several process types multiplies the bill
How much do Dgraph and Heroku cost?
Dgraph has a free plan, with paid plans from $39/mo; Heroku starts at $5/mo. Plan by plan below, from each vendor's own pricing page.
Dgraph
Free- CommunityFree
- Native GraphQL
- Graph queries
- Full-text search
- Cloud$39/mo
- Managed service
- Auto-scaling
- Enterprise support
Heroku
$5/month- Eco Dyno$5/mo
- 0.5 GB RAM
- Git/Docker deploy
- Custom domains
- Basic Dyno$7/mo
- 0.5 GB RAM
- Always-on
- Free SSL
- Standard-1X Dyno$25/mo
- 0.5 GB RAM
- Horizontal scaling
- App metrics
- Standard-2X Dyno$50/mo
- 1 GB RAM
- Horizontal scaling
- App metrics
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.
Choose Heroku if
- You need git-based deployment.
- You work on Web, API, Workers.
- You also want buildpacks.
Questions people ask
- Is Dgraph or Heroku better?
- It depends on the job. Dgraph fits an application whose core data is a graph, such as permissions, social connections or product relationships, where the frontend already consumes GraphQL; Heroku fits application hosting. Dgraph starts at Free and Heroku at $5/month.
- Which is cheaper, Dgraph or Heroku?
- Dgraph has a free tier; the other does not. Paid plans start at Free for Dgraph and $5/month for Heroku.
- Does Dgraph or Heroku run on more platforms?
- Dgraph runs on Linux, macOS, Self-hosted, Web. Heroku runs on Web, API, Workers.
- Can I use Dgraph for free?
- Yes. Dgraph has a free tier, so you can try it without paying. Heroku starts at $5/month.
- What is Dgraph best used for?
- Dgraph is most often used for an application whose core data is a graph, such as permissions, social connections or product relationships, where the frontend already consumes graphql, a knowledge graph that outgrew a single machine and needs storage distributed across nodes without a per-core licence negotiation, recommendation or fraud-detection features that traverse several hops at request time, where a relational join chain has become the bottleneck, teams that want a graph database they can read, fork and self-host under a permissive licence rather than a source-available one. Of those, an application whose core data is a graph, such as permissions, social connections or product relationships, where the frontend already consumes graphql and a knowledge graph that outgrew a single machine and needs storage distributed across nodes without a per-core licence negotiation are not what Heroku is typically brought in for.
- What can Dgraph do that Heroku cannot?
- Dgraph covers Apache 2.0 licence, Generated GraphQL API, DQL query language, Predicate sharding. Heroku covers Git-based deployment, Buildpacks, Dynos (containers), Add-ons marketplace.
Answered from the vendors’ own pages
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.
Heroku: How much does Heroku cost?
Heroku dyno pricing starts at $5 per month USD for the Eco tier (with 30-minute inactivity sleep), $7 per month for Basic (always-on), and scales up to $1,500 per month for Performance-2XL with 126 GB RAM.
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.
Heroku: What is the cheapest always-on Heroku plan?
The Basic Dyno at $7 per month USD is Heroku's cheapest always-on container option. It provides 0.5 GB RAM, free SSL, and support for 10 process types.
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.
Heroku: How is Heroku Postgres priced?
Heroku Postgres Essential tier (shared resources) starts at $5-$20 per month for 1-32 GB disk. Standard tier (dedicated) ranges $50-$12,000 per month. Premium, Private, Shield, and Advanced tiers offer higher performance at corresponding prices.
SourceDgraph: 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
- 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
- Dgraph vs Render
- Dgraph vs Porter
- Dgraph vs Coolify
- Dgraph vs Railway
- Dgraph vs Qovery
- Dgraph vs Fly.io
- Dgraph vs Dokku
- Dgraph vs DigitalOcean
- Dgraph vs AWS (Amazon Web Services)
- Dgraph vs Koyeb
- Dgraph vs Google Cloud Run
- Dgraph vs SST
- Dgraph vs Nitric
- Dgraph vs Packer
- Dgraph vs Skopeo
- Dgraph vs Tencent Cloud
- Dgraph vs Thanos
- Dgraph vs Amazon CloudFront
- Heroku vs ArangoDB
- Heroku vs Neo4j
- Heroku vs Azure Cosmos DB
- Heroku vs SurrealDB
- Heroku vs Elasticsearch
- Heroku vs Couchbase
- Heroku vs Cassandra
- Heroku vs Aerospike
- Heroku vs Firebase Realtime Database
- Heroku vs ScyllaDB
- Heroku vs FaunaDB
- Heroku vs RavenDB
- Heroku vs Nile
- Heroku vs Readyset
- Heroku vs SAP HANA
- Heroku vs Vertica
- Heroku vs Airtable
- Heroku vs Supabase
- Heroku vs Render
- Heroku vs Porter
- Heroku vs Coolify
- Heroku vs Railway
- Heroku vs Qovery
- Heroku vs Fly.io
- Heroku vs Dokku
- Heroku vs DigitalOcean
- Heroku vs AWS (Amazon Web Services)
- Heroku vs Koyeb
- Heroku vs Google Cloud Run
- Heroku vs SST
- Heroku vs Nitric
- Heroku vs Packer
- Heroku vs Skopeo
- Heroku vs Tencent Cloud
- Heroku vs Thanos
- Heroku vs Amazon CloudFront

