【问题标题】:Mixed Gateway HTTP-WEBSOCKET in a Spring Boot ApplicationSpring Boot 应用程序中的混合网关 HTTP-WEBSOCKET
【发布时间】:2020-11-09 11:36:12
【问题描述】:

在您看来,在混合架构(WEBSOCKET + HTTP)中,在 Spring Boot 应用程序中使用 2 个网关是一种好习惯:用于 HTTP 通信的 Zuul 和用于 WEBSOCKET 通信的 Spring Cloud Gateway?或者,在这种情况下,是否建议仅使用 Spring Cloud Gateway?

谢谢。

【问题讨论】:

  • 你得到答案了吗?

标签: spring spring-boot websocket netflix-zuul spring-cloud-gateway


【解决方案1】:

是否建议只使用 Spring Cloud Gateway 因为

Spring Cloud 不提供与 Zuul2 的任何开箱即用的集成。 Gateway 有许多 Zuul2 公开版本中没有的功能,例如速率限制等。此外,使用网关,您可以为每个路由定义自定义过滤器,并且还定义了大量内置过滤器,这有助于很多开始。 Reference

Reference:我认为 SCG 是要走的路,因为 Netflix 和 Pivotal 之间的协议,前者更倾向于 https://medium.com/netflix-techblog/netflix-oss-and-spring-boot-coming-full-circle-4855947713a0 中所述的 Spring Boot/Cloud 生态系统

【讨论】:

  • 你找到更好的主意了吗?
猜你喜欢
  • 2016-10-20
  • 2015-12-28
  • 1970-01-01
  • 2018-07-31
  • 2021-04-26
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2017-05-11
相关资源
最近更新 更多