Spring Cloud Gateway 可以使用非异步的微服务吗?

Can Spring Cloud Gateway work with microservices that are not asynchronous?

我有一些同步微服务正在使用 Spring 启动 2.X 版本进行生产。很快,如果每个微服务的实例数量要增加,我们就需要实现一个网关。我读到 Zuul 处于维护阶段,被默认为异步技术的 Spring Cloud Gateway 取代。我的问题是,我还能用我的微服务实施 Spring 云网关吗?

是的,你可以毫无疑问地使用Spring Cloud Gateway

基本上,asynchronous technology 意味着您在 Api Gateway 上的 resources/threads 不会被阻塞以等待下游服务的响应并增加吞吐量。

现在,一旦您的阻塞服务完成其内部逻辑,它们就会使用最初打开的连接响应 Api GatewayApi Gateway 反过来回复您的客户。