Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How is Spring Cloud Gateway is different from Zuul-2

I want to understand the technical differences between Netflix Zuul2 and Spring Cloud Gateway.

  • Spring Cloud Gateway is async so is Zuul2
  • Both support Http2
  • Both support Route filter (functional routes)
  • Both using on Netty
like image 960
SyntaX Avatar asked Aug 25 '20 06:08

SyntaX


People also ask

What is difference between Eureka and Zuul?

Eureka belongs to "Open Source Service Discovery" category of the tech stack, while Zuul can be primarily classified under "Microservices Tools". Eureka is an open source tool with 8.16K GitHub stars and 2.27K GitHub forks.

What is the use of spring cloud gateway?

Spring Cloud Gateway provides a library for building API gateways on top of Spring and Java. It provides a flexible way of routing requests based on a number of criteria, as well as focuses on cross-cutting concerns such as security, resiliency, and monitoring.

What is alternative to Zuul?

Apigee, Eureka, Kong, HAProxy, and Istio are the most popular alternatives and competitors to Zuul.


1 Answers

Zuul 2 is based on Netty which is a framework for writing network applications in Java. Zuul 2 introduced the concept of Filters. Filters are the core of Zuul's functionality. They are responsible for the business logic of the application and can perfroma variety of tasks. Filter categories: Incoming, Endpoint, and Outgoing.

Spring Cloud provides a simple, effective ay to route to APIs and provide cross cutting concerns such as: security, monitoring/metrics, and resiliency.

I did find an article discussing how Zuul 1 was used with Spring Cloud. Link to that and others pasted below.

https://thebackendguy.com/netflix-zuul-2-api-gateway-sample/

https://spring.io/projects/spring-cloud-gateway

https://stackabuse.com/spring-cloud-routing-with-zuul-and-gateway/

like image 82
thejdah Avatar answered Nov 25 '22 17:11

thejdah