Spring Cloud Gateway与Zuul有何不同? [英] How is Spring Cloud Gateway different from Zuul?

查看:2583
本文介绍了Spring Cloud Gateway与Zuul有何不同?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用 Zuul 作为边缘服务和API网关.最近,我注意到Spring Cloud Platform发布了 Spring Cloud Gateway .这两个网关之间有什么区别?为什么Zuul不扩展为支持S-C-Gateway中的功能?一个新图书馆的总体驱动因素是什么?什么时候应该使用它?

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?

推荐答案

我是Spring Cloud Gateway的作者. Zuul使用阻塞API在Servlet 2.5(与3.x一起使用)的基础上构建.它不支持任何长期存在的连接,例如websockets.

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使用非阻塞API在Spring Framework 5,Project Reactor和Spring Boot 2上构建. Websocket被支持,并且由于它与Spring紧密集成,因此可以提供更好的开发人员体验.

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.

这篇关于Spring Cloud Gateway与Zuul有何不同?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆