Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How is Spring Cloud Gateway different from Zuul?

I have been using Zuul as the edge service and API Gateway. Recently I have noticed that Spring Cloud Platform release Spring Cloud Gateway. What is the difference between the two gateways? Why is the Zuul not extended to support the functionalities in S-C-Gateway? What was the driving factor for a new library altogether? When should it be used?

like image 868
zeagord Avatar asked Nov 03 '17 09:11

zeagord


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 alternative to Zuul?

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

What is Zuul in spring cloud?

Zuul is the front door for all requests from devices and web sites to the backend of the Netflix streaming application. As an edge service application, Zuul is built to enable dynamic routing, monitoring, resiliency and security. Spring Cloud - Table Of Contents.


1 Answers

I am the author of spring cloud gateway. Zuul is built on servlet 2.5 (works with 3.x), using blocking APIs. It doesn't support any long lived connections, like websockets.

Gateway is built on Spring Framework 5, Project Reactor and Spring Boot 2 using non-blocking APIs. Websockets are supported and it's a much better developer experience since it's tightly integrated with Spring.

like image 58
spencergibb Avatar answered Sep 20 '22 13:09

spencergibb