简体   繁体   English

JHipster 微服务和网关 - 网关可扩展性

[英]JHipster Microservice and Gateway - Gateway Scalability

I am using JHipster 6.4.1 to generate an Oauth2 (Okta) Microservice application with a React UI / API Gateway.我正在使用 JHipster 6.4.1 生成带有 React UI / API 网关的 Oauth2 (Okta) 微服务应用程序。 I understand that the Microservice application/s can support multiple instances under the same Registry and will use a round-robin approach to load balancing and in this way can horizontally scale.我知道微服务应用程序可以支持同一个注册表下的多个实例,并将使用循环方法进行负载平衡,这样可以水平扩展。

My understanding is that the Gateway application with Oauth2 uses a stateful Spring Security implementation (JSESSIONID cookie), so the same stateless scalability approach cannot work here.我的理解是,带有 Oauth2 的网关应用程序使用有状态的 Spring 安全实现(JSESSIONID cookie),因此相同的无状态可扩展性方法在这里不起作用。

Are there any recommended solutions for applying scalability to the Gateway application?是否有任何推荐的解决方案可将可扩展性应用于网关应用程序?

You can use Spring Session to share your sessions between gateway instances, there's usually nothing wrong being stateful if the state is small, can be easily replicated and does not contain business data.您可以使用 Spring Session 在网关实例之间共享您的会话,如果 state 很小,可以轻松复制并且不包含业务数据,则通常没有任何问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在 Spring 启动时在 Gateway 服务处处理微服务的认证 - Handling authentication of microservice at Gateway service in Spring boot 有没有办法在不使用 API 网关架构的情况下使用 Jwt 保护微服务端点 - Is there a way to secure microservice endpoints with Jwt without using an APi Gateway architecture Jhipster + PertmitAll关于微服务 - Jhipster + PertmitAll on microservice 在微服务架构中,我有包含用户详细信息的微服务,但在 zuul API 网关中,我想对我的请求进行身份验证 - In microservice archticture, i have microservice which have user detail but in zuul API gateway i want to authenticate my requests Spring Boot - Zuul - 微服务 - 优化对网关的 API 调用以获取用户详细信息 - Spring Boot - Zuul - Microservice - optimise API calls made to gateway to fetch user details 如何使用 Keycloak 保护 Angular 8 前端和使用网关 eureka 保护 Java Spring Cloud 微服务后端 - How to secure an Angular 8 frontend with Keycloak and a Java Spring Cloud microservice backend with gateway, eureka 用户在微服务中的语言环境 - JHipster - User's locale in microservice - JHipster Jhipster微服务Java客户端api调用错误 - Jhipster microservice Java client api call error Spring 带 SAML 的云网关 - Spring Cloud Gateway with SAML 如何获取和使用 JHipster 微服务的身份验证令牌 JWT - How to get and use authentication token for JHipster Microservice JWT
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM