具有多个实例和粘性会话的Spring云网关路由
我对SpringCloudGateway几乎是新手。我已使用两个不同的应用程序配置了路由,并使用“路径”。现在,我需要一些关于具有多个实例和粘性会话的Spring云网关路由,spring,spring-boot,spring-cloud,spring-cloud-gateway,Spring,Spring Boot,Spring Cloud,Spring Cloud Gateway,我对SpringCloudGateway几乎是新手。我已使用两个不同的应用程序配置了路由,并使用“路径”。现在,我需要一些关于 1. How to route to different instance of an app from spring cloud gateway? 2. How to enable sticky session? 我的应用程序未使用spring boot/eureka。如果我使用的是任何发现客户机,我都可以使用lb://服务名称(不幸的是,这不是我的情况) 提前感谢
1. How to route to different instance of an app from spring cloud gateway?
2. How to enable sticky session?
我的应用程序未使用spring boot/eureka。如果我使用的是任何发现客户机,我都可以使用lb://服务名称(不幸的是,这不是我的情况)
提前感谢。IMHO:
祝你好运 两个不同的例子?在几磅以下?如果没有service registry和discoveryclient,则无法使用基于lb://服务名称的url。如果实例运行在不同的端口上,则需要在映射的uri部分提供准确的url