简体   繁体   English

微服务的Sidecar应用示例

[英]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, 通过Eureka可以自动发现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.

相关问题 带有微服务的Spring REST应用程序 - Spring REST Application with Microservices 如何在微服务中访问一个application.properties - How to access one application.properties in microservices 为什么内部化不适用于 JHIpster 微服务应用程序 - Why internalization is not working with JHIpster Microservices application 如何在 Kuma 或任何其他服务网格中的另一个 SpringBoot 应用程序中作为 SideCar 代理注入 SpringBoot 应用程序 - How to inject on SpringBoot application as SideCar Proxy in another SpringBoot application in Kuma or any other Service Mesh 在微服务开发中为Spring Boot应用程序返回对象列表时出错 - Error in returning list of objects for the spring boot application in microservices development Spring示例“保护Web应用程序” - Spring Example “Securing a Web Application” 微服务到微服务安全通信 - Microservices to microservices communication securely 我们可以使用哪种微服务体系结构来挖掘使用无SQL DB的庞大的整体应用程序? - Which Microservices architecture can we use to drill down a huge monolithic application that uses a no SQL DB? JWT 可以用作我同时具有 spring 和节点微服务的应用程序的通用身份验证介质吗? - Can JWT be used as a common authentication medium for a application where i have both spring and node microservices? Spring Cloud Sidecar 配置问题 - Spring Cloud Sidecar configuration issue
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM