[英]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 - 您可以使用服务发现模式,主要有两种 -
Client-side discovery - This is where clients are responsible for figuring out available service instances. 客户端发现 - 客户端负责确定可用的服务实例。 Example - Netflix OSS.
示例 - Netflix OSS。
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.