{"id":14983604,"url":"https://github.com/hb-chen/micro-mesh","last_synced_at":"2025-04-10T18:45:25.607Z","repository":{"id":57486414,"uuid":"161001455","full_name":"hb-chen/micro-mesh","owner":"hb-chen","description":"gRPC微服务架构实践","archived":false,"fork":false,"pushed_at":"2022-11-26T05:52:18.000Z","size":591,"stargazers_count":52,"open_issues_count":0,"forks_count":9,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-24T16:35:53.683Z","etag":null,"topics":["grpc","grpc-gateway","istio","rbac","service-mesh"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hb-chen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-09T03:43:55.000Z","updated_at":"2021-10-16T06:11:57.000Z","dependencies_parsed_at":"2023-01-22T01:57:32.672Z","dependency_job_id":null,"html_url":"https://github.com/hb-chen/micro-mesh","commit_stats":null,"previous_names":["hb-go/micro-mesh"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hb-chen%2Fmicro-mesh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hb-chen%2Fmicro-mesh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hb-chen%2Fmicro-mesh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hb-chen%2Fmicro-mesh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hb-chen","download_url":"https://codeload.github.com/hb-chen/micro-mesh/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248271925,"owners_count":21075800,"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","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":["grpc","grpc-gateway","istio","rbac","service-mesh"],"created_at":"2024-09-24T14:07:34.833Z","updated_at":"2025-04-10T18:45:25.584Z","avatar_url":"https://github.com/hb-chen.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"Micro Mesh\n=====\n\n\u003ca href=\"#\"\u003e![micro-mesh](/doc/img/micro-mesh.jpg \"micro-mesh\")\u003c/a\u003e\n\n**环境**\n\n- OSX\n- GKE **1.12.5-gke.10**\n- Go **1.11.1**\n- Istio **1.1.0**\n- protoc **libprotoc 3.6.1**\n\n**目录**\n\n- [TODO](#TODO)\n- [Protoc](#Protoc)\n\n## 框架\n\n- registry\n    - istio\n    - go-micro\n        - k8s\n        - consul\n        - etcd\n- tracing\n    - opentracing\n        - jaeger + ES / kafka\n- metrics\n    - prometheus\n        - ES / kafka\n\n### TODO\n\n- [hb-chen/grpc-gateway](https://github.com/hb-chen/grpc-gateway)\n    - [x] `gen-grpc-gateway`扩展，支持gRPC服务本地调用，在`service`中启动http server，已在[v1.10.0](https://github.com/grpc-ecosystem/grpc-gateway/releases/tag/v1.10.0)并入社区版本\n    - [ ] `gen-istio-gateway`通过grpc-gateway API自动生成istio gateway的`.yaml`配置\n    - [ ] `swagger-codegen`\n- Istio部署\n    - [x] k8s`.yaml`脚本\n    - [x] `JWT`Gateway认证\n    - [x] `RBAC`服务间访问控制\n    - [x] 自定义[auth-adapter](/examples/adapter/auth)\n- 服务\n    - [x] gRPC ClientConn对象池\n    - [ ] 并发\n        - [ ] 并发控制`Wait`、`Cancel`\n        - [ ] 超时控制`Timeout`\n    - [ ] 流处理\n    - [ ] 同步\u0026异步调用\n    - [ ] 配置中心\n    - [ ] CI/CD\n\n---\n### Protoc\n\n#### 安装\n\n[envoyproxy/protoc-gen-validate](https://github.com/envoyproxy/protoc-gen-validate#installation)\n\n```bash\ngo get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway\ngo get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger\ngo get -u github.com/golang/protobuf/protoc-gen-go\n\n# 自定义代码生成\n# 1.导出grpc.ServiceDesc\n# 2.注册中心接口\ngo get -u github.com/hb-go/grpc-contrib/protoc-gen-hb-grpc\n```\n\n***~~使用fork grpc-gateway的protoc-gen-grpc-gateway~~***\n```bash\ncd $GOPATH/src/github.com/grpc-ecosystem\ngit clone github.com/hb-chen/grpc-gateway\nmake bin/protoc-gen-grpc-gateway\nmv bin/protoc-gen-grpc-gateway $GOPATH/bin/protoc-gen-grpc-gateway\n```\n\n#### 代码生成\n\n```bash\n# go+grpc\n# grpc-gateway\n# swagger\n# hbgrpc-gateway\n# hb-grpc\nprotoc -I$GOPATH/src/ -I./ \\\n--go_out=plugins=grpc:. \\\n--grpc-gateway_out=logtostderr=true,grpc_api_configuration=proto/gateway.yaml:. \\\n--swagger_out=logtostderr=true,grpc_api_configuration=proto/gateway.yaml:. \\\n--validate_out=lang=go:. \\\n--hb-grpc-gateway_out=logtostderr=true,grpc_api_configuration=proto/gateway.yaml:. \\\n--hb-grpc_out=plugins=registry+desc:. \\\nproto/*.proto\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhb-chen%2Fmicro-mesh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhb-chen%2Fmicro-mesh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhb-chen%2Fmicro-mesh/lists"}