Softwr

API Management · head to head

Hasura vs Spring Cloud Gateway

Hasura logo

Hasura

API Management

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

From
Free
Rated
-
Spring Cloud Gateway logo

Spring Cloud Gateway

API Management

API gateway built on Project Reactor for building microservices

From
Free
Rated
-

The short version

  • Each has a real cost: Hasura database support limited to PostgreSQL, MongoDB, ClickHouse, and MS SQL Server only; Spring Cloud Gateway released under the Apache 2.0 license, free and open source with no commercial tier
  • They diverge on capability: Hasura covers GraphQL API, Spring Cloud Gateway covers Routing.

Where they differ

Only the attributes on which Hasura and Spring Cloud Gateway actually diverge.

Attributes where Hasura and Spring Cloud Gateway differ
AttributeHasuraSpring Cloud Gateway
PlatformsWebJava, Spring Boot
Founded20171998

Identical on both: starting price (Free), pricing model (open-source), free tier (Yes), user rating (Not yet rated), category (API Management).

What each one covers

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 people use each for

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 each one falls short

Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Hasura

  • Database support limited to PostgreSQL, MongoDB, ClickHouse, and MS SQL Server only

Spring Cloud Gateway

  • Released under the Apache 2.0 license, free and open source with no commercial tier

Pricing, plan by plan

Hasura

Free

No published plan breakdown. See the Hasura review.

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 Java, Spring Boot.
  • You also want path rewriting.

Questions people ask

Is Hasura or Spring Cloud Gateway better?
Neither clearly leads. Hasura starts at Free and Spring Cloud Gateway at Free, and user ratings are close enough to be indistinguishable. Choose on capability and platform support.
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 Java, 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.

Related pages

Other head to heads