[英]Example of Sidecar Application for Microservices
Spring云配置服务器是否是微服务的补充应用示例?
Do you mean if the Spring Cloud Config Server itself is what the Spring Cloud documentation labels as Sidecar? 您是说如果Spring Cloud Config Server本身就是Spring Cloud文档标记为Sidecar的东西? Then no, as far as I know it is just a plain, regular Spring Boot app.
就我所知,那只是一个普通的常规Spring Boot应用程序。
A Sidecar as referred to in Polyglot support with Sidecar is a Spring Boot application that acts as a bridge between your service infrastructure and a service that is not written in a JVM language. 在Sideg中, Polyglot支持中提到的Sidecar是Spring Boot应用程序,它充当服务基础结构与未使用JVM语言编写的服务之间的桥梁。 Apps written in Python, Go, Ruby, C#, NodeJS, Erlang or really any other language that can bind something to a port come to mind.
我想到了用Python,Go,Ruby,C#,NodeJS,Erlang或实际上可以将某些东西绑定到端口的任何其他语言编写的应用程序。
The benefits of the Sidecar are, that your Non-JVM apps Sidecar的好处是,您的Non-JVM应用程序
service discovery
become automatically discoverable through Eureka , which means that JVM services can resolve the host:port/<service-id>
of the Non-JVM apps as well as the other way around, service discovery
,这意味着JVM服务可以解析Non-JVM应用程序的host:port/<service-id>
以及其他方法, monitoring
are monitorable through the same health-endpoints-infrastructure that is available in Spring Boot (Actuator), ie by manually providing the health endpoint in the Non-JVM app Eureka knows when the Non-JVM service is down monitoring
是通过相同的医疗终端,基础设施,是在春季启动(执行机构)提供,由非JVM的应用程序尤里卡手动提供健康的端点,即知道监视的当非JVM服务已关闭 routing/proxying
query the services by either manually looking up their hosts/ports or proxying these requests through Zuul , which in turn resolves their current addresses through Eureka routing/proxying
通过手动查找服务的主机/端口或通过Zuul代理这些请求来查询服务,这又通过Eureka解析其当前地址。 balancing
be load balanced by Ribbon and balancing
可以通过负载均衡功能区和 configuration
may consume configuration properties provided via Spring Cloud Config . configuration
可能会消耗通过Spring Cloud Config提供的配置属性。 I hope this answer addresses your question, if not (or someone finds it to be inaccurate or misleading) just let me know and I delete it to make room for something more suitable.
我希望这个答案能解决您的问题,如果不是(或者有人发现它不准确或具有误导性),请告诉我,然后删除它,以便为更合适的内容留出空间。 ;-)
;-)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.