StackShareStackShare
Follow on
StackShare

Discover and share technology stacks from companies around the world.

Follow on

© 2025 StackShare. All rights reserved.

Product

  • Stacks
  • Tools
  • Feed

Company

  • About
  • Contact

Legal

  • Privacy Policy
  • Terms of Service
  1. Stackups
  2. Application & Data
  3. Platform as a Service
  4. Platform As A Service
  5. Dgraph vs Hasura

Dgraph vs Hasura

OverviewComparisonAlternatives

Overview

Hasura
Hasura
Stacks343
Followers634
Votes144
GitHub Stars31.8K
Forks2.8K
Dgraph
Dgraph
Stacks124
Followers221
Votes9
GitHub Stars21.3K
Forks1.6K

Dgraph vs Hasura: What are the differences?

Introduction

In this markdown code, the key differences between Dgraph and Hasura will be discussed.

  1. Scalability: Dgraph is developed with scalability in mind and offers a distributed architecture that allows for horizontal scaling across multiple nodes. It uses sharding to distribute data across clusters and utilizes a distributed consensus algorithm to ensure data consistency in a fault-tolerant manner. On the other hand, Hasura is a lightweight GraphQL engine that can be run as a single instance or deployed on Kubernetes. While Hasura provides vertical scaling options, it does not offer built-in horizontal scalability features like Dgraph.

  2. Data Modeling: Dgraph is a native graph database and offers a schema-based approach for modeling data. It supports complex relationships and has built-in features for handling graph queries efficiently. On the contrary, Hasura is primarily focused on simplifying GraphQL API development and does not provide native support for complex relationships or graph-specific features. It relies on the underlying database's data modeling capabilities.

  3. Real-time capabilities: Dgraph provides real-time capabilities through its subscription feature, allowing clients to subscribe to changes in the data and receive updates in real-time. It leverages the Pub/Sub mechanism to notify subscribed clients about changes. In contrast, Hasura also offers real-time capabilities through GraphQL subscriptions, allowing clients to subscribe to specific events and receive real-time updates. However, Hasura does not provide the same level of flexibility and scalability as Dgraph, especially when dealing with complex graph-based data.

  4. Geospatial data handling: Dgraph has built-in support for geospatial data, allowing developers to perform spatial queries and operations efficiently. It provides spatial indexing and supports geo-point and geo-shape data types. On the other hand, Hasura does not have native support for handling geospatial data. Developers using Hasura would need to rely on the capabilities of the underlying database for geospatial operations.

  5. Authorization and Access Control: Dgraph offers a flexible and fine-grained access control mechanism through its ACL (Access Control Lists) system. It allows developers to define custom access rules and roles for different users or user groups. Dgraph's authorization system is based on predicates and predicates groups, providing granular control over data access. In contrast, Hasura provides a simpler role-based access control (RBAC) mechanism, where access can be granted or denied based on user roles defined within Hasura. While Hasura's RBAC system is sufficient for most use cases, Dgraph's ACL system offers more flexibility and control over data access.

  6. Community and Ecosystem: Dgraph has a growing community and a vibrant ecosystem of libraries, tools, and resources. It has gained popularity in the graph database space and has active community support. Dgraph also provides official client libraries for various programming languages, making it easier for developers to integrate with their applications. On the other hand, Hasura also has an active community and offers a range of integrations and extensions. However, compared to Dgraph, Hasura's community and ecosystem are relatively smaller.

In Summary, the key differences between Dgraph and Hasura lie in their scalability capabilities (horizontal scaling in Dgraph vs. limited vertical scaling in Hasura), data modeling approach (graph-based vs. traditional), real-time capabilities (built-in support in Dgraph vs. limited support in Hasura), geospatial data handling (native support in Dgraph vs. reliance on underlying database in Hasura), authorization and access control mechanisms (fine-grained ACL system in Dgraph vs. simpler role-based system in Hasura), and the size and vibrancy of their respective communities and ecosystems.

Share your Stack

Help developers discover the tools you use. Get visibility for your team's tech choices and contribute to the community's knowledge.

View Docs
CLI (Node.js)
or
Manual

Detailed Comparison

Hasura
Hasura
Dgraph
Dgraph

An open source GraphQL engine that deploys instant, realtime GraphQL APIs on any Postgres database.

Dgraph's goal is to provide Google production level scale and throughput, with low enough latency to be serving real time user queries, over terabytes of structured data. Dgraph supports GraphQL-like query syntax, and responds in JSON and Protocol Buffers over GRPC and HTTP.

Stack-agnostic; Cloud-agnostic; Git push to deploy; Pre-configured API Gateway; Instant GraphQL or JSON APIs; Out-of-the-box Auth APIs with UI Kits; Filestore APIs with access control; Deploy custom code
-
Statistics
GitHub Stars
31.8K
GitHub Stars
21.3K
GitHub Forks
2.8K
GitHub Forks
1.6K
Stacks
343
Stacks
124
Followers
634
Followers
221
Votes
144
Votes
9
Pros & Cons
Pros
  • 23
    Fast
  • 18
    Easy GraphQL subscriptions
  • 16
    Easy setup of relationships and permissions
  • 15
    Minimal learning curve
  • 15
    Automatically generates your GraphQL schema
Cons
  • 3
    Cumbersome validations
Pros
  • 3
    Graphql as a query language is nice if you like apollo
  • 2
    Easy set up
  • 2
    Low learning curve
  • 1
    Open Source
  • 1
    High Performance
Integrations
Kubernetes
Kubernetes
PostgreSQL
PostgreSQL
Docker
Docker
GraphQL
GraphQL
No integrations available

What are some alternatives to Hasura, Dgraph?

Heroku

Heroku

Heroku is a cloud application platform – a new way of building and deploying web apps. Heroku lets app developers spend 100% of their time on their application code, not managing servers, deployment, ongoing operations, or scaling.

Clever Cloud

Clever Cloud

Clever Cloud is a polyglot cloud application platform. The service helps developers to build applications with many languages and services, with auto-scaling features and a true pay-as-you-go pricing model.

Google App Engine

Google App Engine

Google has a reputation for highly reliable, high performance infrastructure. With App Engine you can take advantage of the 10 years of knowledge Google has in running massively scalable, performance driven systems. App Engine applications are easy to build, easy to maintain, and easy to scale as your traffic and data storage needs grow.

Red Hat OpenShift

Red Hat OpenShift

OpenShift is Red Hat's Cloud Computing Platform as a Service (PaaS) offering. OpenShift is an application platform in the cloud where application developers and teams can build, test, deploy, and run their applications.

Neo4j

Neo4j

Neo4j stores data in nodes connected by directed, typed relationships with properties on both, also known as a Property Graph. It is a high performance graph store with all the features expected of a mature and robust database, like a friendly query language and ACID transactions.

AWS Elastic Beanstalk

AWS Elastic Beanstalk

Once you upload your application, Elastic Beanstalk automatically handles the deployment details of capacity provisioning, load balancing, auto-scaling, and application health monitoring.

Render

Render

Render is a unified platform to build and run all your apps and websites with free SSL, a global CDN, private networks and auto deploys from Git.

Cloud 66

Cloud 66

Cloud 66 gives you everything you need to build, deploy and maintain your applications on any cloud, without the headache of dealing with "server stuff". Frameworks: Ruby on Rails, Node.js, Jamstack, Laravel, GoLang, and more.

Jelastic

Jelastic

Jelastic is a Multi-Cloud DevOps PaaS for ISVs, telcos, service providers and enterprises needing to speed up development, reduce cost of IT infrastructure, improve uptime and security.

Dokku

Dokku

It is an extensible, open source Platform as a Service that runs on a single server of your choice. It helps you build and manage the lifecycle of applications from building to scaling.

Related Comparisons

Bootstrap
Materialize

Bootstrap vs Materialize

Laravel
Django

Django vs Laravel vs Node.js

Bootstrap
Foundation

Bootstrap vs Foundation vs Material UI

Node.js
Spring Boot

Node.js vs Spring-Boot

Liquibase
Flyway

Flyway vs Liquibase