{"id":18592554,"url":"https://github.com/springcloud/spring-cloud-cm","last_synced_at":"2025-08-25T15:08:37.517Z","repository":{"id":96878621,"uuid":"134346050","full_name":"SpringCloud/spring-cloud-cm","owner":"SpringCloud","description":"The cm communication component of Spring Cloud for kubernetes.","archived":false,"fork":false,"pushed_at":"2018-10-17T01:55:16.000Z","size":555,"stargazers_count":17,"open_issues_count":2,"forks_count":4,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-06-29T13:51:51.525Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SpringCloud.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-05-22T01:52:48.000Z","updated_at":"2023-08-24T11:24:52.000Z","dependencies_parsed_at":"2023-03-12T03:16:19.601Z","dependency_job_id":null,"html_url":"https://github.com/SpringCloud/spring-cloud-cm","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SpringCloud/spring-cloud-cm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpringCloud%2Fspring-cloud-cm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpringCloud%2Fspring-cloud-cm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpringCloud%2Fspring-cloud-cm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpringCloud%2Fspring-cloud-cm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SpringCloud","download_url":"https://codeload.github.com/SpringCloud/spring-cloud-cm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpringCloud%2Fspring-cloud-cm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272084844,"owners_count":24870584,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-25T02:00:12.092Z","response_time":1107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T01:09:03.649Z","updated_at":"2025-08-25T15:08:37.510Z","avatar_url":"https://github.com/SpringCloud.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# spring-cloud-cm\n这是一个服务注册与服务发现的通信组建，主要实现基于非容器微服务平台或独立非容器化中间件平台与容器环境融合存在的通讯问题与watch机制的建立。\n\n# 适用场景\n1、传统微服务容器化迁移场景，k8s集群内的微服务与集群外注册于eureka或zk的微服务并行。\n\n2、传统服务容器化迁移场景，保持传统服务与已迁移至容器的依赖关系衔接。\n\n3、部分k8s集群外未容器化的中间件组件与k8s服务通信连接与watch。\n\n4、其他服务注册与发现场景，如ZK、consful等。\n\n5、独立的分布式集群服务注册与发现中心。\n\n# 术语定义\nCM ：Center Manager 管理连接器\n\nStudio：Management Studio管理控制器\n\nProxy：Service Proxy 服务代理\n\nAgent：Manage Agent 管理代理\n\n# 通信组件原理\n1、通信互通\n\n2、watch机制\n\n3、心跳保持\n\n# 优势\n1、优势：对集群并行独立，最大程度保持新老环境独立运行，通过中间件衔接，降低迁移分险。\n\n# 方案对比\n第一种迁移方案:service注册，否定。\n\n![image](https://github.com/SpringCloud/spring-cloud-cm/blob/master/page-resources/img/one-Architecture.png)\n\n第二种迁移方案：podIp注册，否定。\n\n![image](https://github.com/SpringCloud/spring-cloud-cm/blob/master/page-resources/img/two-Architecture.png)\n\n第三种迁移方案：增加通信组件。\n\n![image](https://github.com/SpringCloud/spring-cloud-cm/blob/master/page-resources/img/three-Architecture.png)\n\n# 通信组件 Architecture\n![image](https://github.com/SpringCloud/spring-cloud-cm/blob/master/page-resources/img/architecture.png)\n![image](https://github.com/SpringCloud/spring-cloud-cm/blob/master/page-resources/img/agent-base.png)\n![image](https://github.com/SpringCloud/spring-cloud-cm/blob/master/page-resources/img/cm-base.png)\n![image](https://github.com/SpringCloud/spring-cloud-cm/blob/master/page-resources/img/agent-uml.png)\n![image](https://github.com/SpringCloud/spring-cloud-cm/blob/master/page-resources/img/app-uml.png)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspringcloud%2Fspring-cloud-cm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspringcloud%2Fspring-cloud-cm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspringcloud%2Fspring-cloud-cm/lists"}