Softwr

Developer Tools · head to head

Keycloak vs Spring Cloud Gateway

Keycloak logo

Keycloak

Developer Tools

Open-source identity and access management server.

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

  • Keycloak is an open-source IAM platform supporting OpenID Connect, OAuth 2; Spring Cloud Gateway is a library for building API gateways.
  • Both are free.
  • Where Keycloak falls short: requires self-hosted deployment and operational expertise to install, configure and maintain.
  • 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 Keycloak and Spring Cloud Gateway differ?

Keycloak and Spring Cloud Gateway differ on platforms and category (Developer Tools against APIs). Only the attributes on which Keycloak and Spring Cloud Gateway actually diverge.

Attributes where Keycloak and Spring Cloud Gateway differ
AttributeKeycloakSpring Cloud Gateway
PlatformsSelf-hosted, Linux, Windows, APIAPI, Spring Boot
CategoryDeveloper ToolsAPIs

Identical on both: starting price (Free), pricing model (Open-source), free tier (Yes).

Not yet recorded: founded for Keycloak.

Which features does each one have?

They share no listed features; 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 Keycloak

Nothing recorded that Spring Cloud Gateway does not also cover.

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?

Keycloak is most often brought in for open-source projects and communities requiring free IAM without licensing costs; Spring Cloud Gateway for API Development. The jobs each tool is most often brought in to do.

Keycloak

  • Organisations requiring self-hosted identity infrastructure for compliance or data residencynot Spring Cloud Gateway
  • Companies with existing LDAP/Active Directory systems needing federated authenticationnot Spring Cloud Gateway
  • Open-source projects and communities requiring free IAM without licensing costsnot Spring Cloud Gateway
  • Enterprises building custom identity workflows requiring fine-grained authorisationnot Spring Cloud Gateway
  • Teams with sufficient operational expertise to manage infrastructurenot Spring Cloud Gateway

Spring Cloud Gateway

  • API Developmentnot Keycloak
  • API Gatewaynot Keycloak
  • API Testingnot Keycloak
  • API Documentationnot Keycloak
  • Microservicesnot Keycloak

Where do Keycloak and Spring Cloud Gateway fall short?

Keycloak's most cited limit: requires self-hosted deployment and operational expertise to install, configure and maintain. 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.

Keycloak

  • Requires self-hosted deployment and operational expertise to install, configure and maintain
  • No managed cloud option provided by Red Hat; organisations must operate infrastructure themselves or use third-party distributions
  • Clustering and high-availability configurations require additional operational knowledge
  • Community support only; commercial support requires third-party vendors or distributions

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 Keycloak and Spring Cloud Gateway cost?

Keycloak is free to use; Spring Cloud Gateway is free to use. Plan by plan below, from each vendor's own pricing page.

Keycloak

Free
  • Open-sourceFree
    • Full platform functionality
    • Self-hosted deployment
    • Community support

Spring Cloud Gateway

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

Which should you pick?

Choose Keycloak if

  • You want to start without paying.
  • You work on Self-hosted, Linux, Windows, API.

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 Keycloak or Spring Cloud Gateway better?
It depends on the job. Keycloak fits organisations requiring self-hosted identity infrastructure for compliance or data residency; Spring Cloud Gateway fits aPI Development. Keycloak starts at Free and Spring Cloud Gateway at Free.
Which is cheaper, Keycloak or Spring Cloud Gateway?
Keycloak starts at Free and Spring Cloud Gateway at Free.
Does Keycloak or Spring Cloud Gateway run on more platforms?
Keycloak runs on Self-hosted, Linux, Windows, API. Spring Cloud Gateway runs on API, Spring Boot.
Can I use Keycloak for free?
Both have a free tier, so you can try either at no cost before committing.
What is Keycloak best used for?
Keycloak is most often used for organisations requiring self-hosted identity infrastructure for compliance or data residency, companies with existing ldap/active directory systems needing federated authentication, open-source projects and communities requiring free iam without licensing costs, enterprises building custom identity workflows requiring fine-grained authorisation. Of those, organisations requiring self-hosted identity infrastructure for compliance or data residency and companies with existing ldap/active directory systems needing federated authentication are not what Spring Cloud Gateway is typically brought in for.
What can Keycloak do that Spring Cloud Gateway cannot?
Spring Cloud Gateway covers Routing, Path Rewriting, Circuit Breaker, Spring Boot.

Answered from the vendors’ own pages

Keycloak: What protocols does Keycloak support?

Keycloak supports OpenID Connect, OAuth 2.0 and SAML 2.0 protocols for authentication and authorisation.

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
Keycloak: Can Keycloak integrate with existing user directories?

Yes. Keycloak supports user federation with LDAP and Active Directory systems, allowing organisations to leverage existing user directories.

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
Keycloak: Is Keycloak free?

Yes. Keycloak is fully open-source and free to deploy and use. No licensing fees are required.

Source
Share

Related pages

Other head to heads