How is Spring Cloud Gateway is different from Zuul-2

Viewed 2521

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
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/

Related