java – Spring Cloud Gateway or Zuul2, Which one is the right replacement for Zuul1?

java – Spring Cloud Gateway or Zuul2, Which one is the right replacement for Zuul1?

Zuul1 is blocking whereas Zuul2 and spring cloud gateway are non-blocking and this is a major performance factor for a gateway, as a non-blocking model requires less resources to serve the same amount of requests as compared to a blocking gateway.

Now, coming to spring cloud gateway and Zuul2 – Spring Cloud does not provide any out of the box integration with Zuul2. Gateway has many features that are not available in the public version of Zuul2 such as Rate limiting, etc. Also, with the gateway you can have custom filters defined per route and there are tons of built-in filters defined as well, which helps a lot to get started.

Actually, there are many things which are not possible to explain here. You can follow the gateway documentation here – https://cloud.spring.io/spring-cloud-static/spring-cloud-gateway/2.0.2.RELEASE/single/spring-cloud-gateway.html

I think SCG is the way to go due to the agreements between Netflix and Pivotal, with the former leaning more toward the spring boot/cloud ecosystem as stated in https://medium.com/netflix-techblog/netflix-oss-and-spring-boot-coming-full-circle-4855947713a0

Performance-wise it also seems like a good bet: https://www.bytesville.com/zuul-spring-cloud-gateway-comparison-benchmarks-loadtesting/

java – Spring Cloud Gateway or Zuul2, Which one is the right replacement for Zuul1?

They both are replacements, but Spring Cloud will only support Gateway, not zuul 2

Leave a Reply

Your email address will not be published. Required fields are marked *