简体   繁体   English

monolith spring 3应用程序如何与微服务进行通信?

[英]how monolith spring 3 application will communicate with microservice?

I have one monolith spring web application developed using spring 3.1 and spring-security 3.1 with Java 7 and it is deployed on tomcat 7. 我有一个使用spring 3.1开发的monolith spring web应用程序和带有Java 7的spring-security 3.1,它部署在tomcat 7上。

Now I have a new requirement where I have to create a micro-service for a new module using spring boot with java 8. This micro-service will be deployed separately on different EC2 instance. 现在我有了一个新的要求,我必须使用带有java 8的spring boot为新模块创建一个微服务。这个微服务将分别部署在不同的EC2实例上。

I am looking for suggestion/idea to access new microservice from my existing spring web application. 我正在寻找建议/想法从我现有的春季网络应用程序访问新的微服务。

How to perform inter process communication within these two spring application? 如何在这两个弹簧应用程序中执行进程间通信

Can someone provide me any help/pointer? 有人可以给我任何帮助/指针吗?

You can make use of service discovery pattern, which are mainly of two kinds - 您可以使用服务发现模式,主要有两种 -

  1. Client-side discovery - This is where clients are responsible for figuring out available service instances. 客户端发现 - 客户端负责确定可用的服务实例。 Example - Netflix OSS. 示例 - Netflix OSS。

  2. Server-side discovery - In this the service instances are registered on the server-side using a service registry. 服务器端发现 - 在此服务实例使用服务注册表在服务器端注册。 Example - AWS ELB. 示例 - AWS ELB。

You can read a lot about these on the internet. 您可以在互联网上阅读很多相关内容。 Just remember the keywords. 记住关键字。 Hope this helps ! 希望这可以帮助 !

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

相关问题 如何使用 Spring Boot 在整体应用程序中设计“删除用户流”? - How to design "delete user flow" in monolith application with Spring Boot? 使用 Spring Boot 包装 Monolith JSF/Spring 应用程序 - Wrapping a Monolith JSF/Spring application with Spring Boot 从Spring Monolith应用程序迁移到OSGI - Migrating from Spring monolith application to OSGI 如何与Spring Server通信Android应用程序 - How to communicate android application with spring server 扩展 Jhipster JWT (Spring) 单体应用程序以支持模拟 - Extending a Jhipster JWT (Spring) monolith application to support impersonation 如何在微服务中与jwt enable服务通信 - How to communicate with jwt enable service in microservice jhipster monolith 到微服务迁移:没有转发授权信息? - jhipster monolith to microservice migration: no authorization information forwarded? 如何架构 Spring 启动微服务 - how to architecture Spring Boot Microservice 用于在 spring 启动应用程序中运行 cron 作业的微服务 - Microservice for running cron job in spring boot application Spring Boot微服务框架如何从一个微服务调用另一个微服务 - spring boot microservice framework how to call another microservice from one microservice
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM