Softwr

APIs · head to head

Hasura vs Spring Cloud Gateway

Hasura logo

Hasura

APIs

GraphQL engine that instantly creates production-ready GraphQL API from databases

From
Free
Free plan
Yes
Spring Cloud Gateway logo

Spring Cloud Gateway

APIs

API gateway built on Project Reactor for building microservices

From
Free
Free plan
Yes

The short version

  • Hasura is an open-source engine; Spring Cloud Gateway is a library for building API gateways.
  • Spring Cloud Gateway is free; Hasura starts at $5/mo.
  • Only Hasura lists GraphQL API; only Spring Cloud Gateway lists path Rewriting.
  • Where Hasura falls short: active model definition: model/command accessed more than 1,000 times monthly.
  • Where Spring Cloud Gateway falls short: ships as a library for building a gateway on Spring, so you write, package and operate the gateway application yourself.

How do Hasura and Spring Cloud Gateway differ?

Hasura and Spring Cloud Gateway differ on pricing model (Freemium against Open-source), platforms (Web against API, Spring Boot) and year founded (2017 against 1998). Only the attributes on which Hasura and Spring Cloud Gateway actually diverge.

Attributes where Hasura and Spring Cloud Gateway differ
AttributeHasuraSpring Cloud Gateway
Pricing modelFreemiumOpen-source
PlatformsWebAPI, Spring Boot
Founded20171998

Identical on both: starting price (Free), free tier (Yes), category (APIs).

Which features does each one have?

They share no listed features; 11 appear only for Hasura and 8 only for Spring Cloud Gateway. 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 Hasura

  • GraphQL API
  • Real-time subscriptions
  • Access control
  • PostgreSQL
  • MySQL
  • Webhooks
  • REST APIs
  • Cloud support

Only in Spring Cloud Gateway

  • Routing
  • Path Rewriting
  • Circuit Breaker
  • Spring Boot
  • Spring Security
  • Spring Cloud
  • Java support
  • Spring Boot support

What is each one used for?

Hasura is most often brought in for automatic GraphQL API generation from existing databases; Spring Cloud Gateway for API Development. The jobs each tool is most often brought in to do.

Hasura

  • Automatic GraphQL API generation from existing databasesnot Spring Cloud Gateway
  • Real-time data subscriptions for modern applicationsnot Spring Cloud Gateway
  • Backend infrastructure for web and mobile applicationsnot Spring Cloud Gateway
  • Event-triggered webhooks for database changesnot Spring Cloud Gateway

Spring Cloud Gateway

  • API Developmentnot Hasura
  • API Gatewaynot Hasura
  • API Testingnot Hasura
  • API Documentationnot Hasura
  • Microservicesnot Hasura

Where do Hasura and Spring Cloud Gateway fall short?

Hasura's most cited limit: active model definition: model/command accessed more than 1,000 times monthly. Spring Cloud Gateway's: ships as a library for building a gateway on Spring, so you write, package and operate the gateway application yourself. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Hasura

  • Active model definition: model/command accessed more than 1,000 times monthly
  • Private DDN requires Base or Advanced plan
  • Free DDN plan allows 1 supergraph developer; unlimited developers need the Base plan or above
  • Free plan keeps traces and API performance metrics for only 15 minutes, against 30 days on paid plans

Spring Cloud Gateway

  • Ships as a library for building a gateway on Spring, so you write, package and operate the gateway application yourself
  • Offered in two variants, Server WebFlux and Server Web MVC, each with its own dependency, so you must pick a stack up front

How much do Hasura and Spring Cloud Gateway cost?

Hasura has a free plan, with paid plans from $5/mo; Spring Cloud Gateway is free to use. Plan by plan below, from each vendor's own pricing page.

Hasura

Free
  • DDN FreeFree
    • Unlimited models
    • 1 supergraph developer
    • 15-minute observability retention
  • DDN Base$5/mo
    • Per active model billing
    • Unlimited developers
    • 30-day observability retention
  • DDN Advanced$30/mo
    • Per active model billing
    • Federated collaboration
    • Multi-repo CI/CD

Spring Cloud Gateway

Free
  • Open SourceFree
    • Core Spring Cloud Gateway
    • Community support

Which should you pick?

Choose Hasura if

  • You need graphql api.
  • You want to start without paying.
  • You also want real-time subscriptions.

Choose Spring Cloud Gateway if

  • You need routing.
  • You want to start without paying.
  • You work on API, Spring Boot.
  • You also want path rewriting.

Questions people ask

Is Hasura or Spring Cloud Gateway better?
It depends on the job. Hasura fits automatic GraphQL API generation from existing databases; Spring Cloud Gateway fits aPI Development. Hasura starts at Free and Spring Cloud Gateway at Free.
Which is cheaper, Hasura or Spring Cloud Gateway?
Hasura starts at Free and Spring Cloud Gateway at Free.
Does Hasura or Spring Cloud Gateway run on more platforms?
Hasura runs on Web. Spring Cloud Gateway runs on API, Spring Boot.
Can I use Hasura for free?
Both have a free tier, so you can try either at no cost before committing.
What is Hasura best used for?
Hasura is most often used for automatic graphql api generation from existing databases, real-time data subscriptions for modern applications, backend infrastructure for web and mobile applications, event-triggered webhooks for database changes. Of those, automatic graphql api generation from existing databases and real-time data subscriptions for modern applications are not what Spring Cloud Gateway is typically brought in for.
What can Hasura do that Spring Cloud Gateway cannot?
Hasura covers GraphQL API, Real-time subscriptions, Access control, PostgreSQL. Spring Cloud Gateway covers Routing, Path Rewriting, Circuit Breaker, Spring Boot.

Answered from the vendors’ own pages

Hasura: How much does Hasura cost?

Hasura DDN Free is free. DDN Base starts at $5/active model/month, and DDN Advanced starts at $30/active model/month.

Source
Spring Cloud Gateway: Is Spring Cloud Gateway free?

Yes, Spring Cloud Gateway is free and open-source software. It is part of the Spring ecosystem and available through GitHub repositories with open-source dependencies like spring-cloud-starter-gateway-server-webflux and spring-cloud-starter-gateway-server-webmvc.

Source
Hasura: What is an active model in Hasura pricing?

An active model is defined as any model or command accessed more than 1,000 times monthly.

Source
Spring Cloud Gateway: What enterprise support is available for Spring Cloud Gateway?

Tanzu Spring provides optional enterprise support including Day 0 access to security patches for organizations requiring guaranteed support, but specific pricing is not published on the Spring Cloud Gateway project page.

Source
Hasura: Is there a free version of Hasura?

Yes, Hasura DDN Free is always free and includes unlimited models, 1 supergraph developer, and 15-minute observability retention.

Source
Share

Related pages

Other head to heads