{"id":16383319,"url":"https://github.com/hwholiday/microservice_learning","last_synced_at":"2025-03-21T02:30:54.390Z","repository":{"id":60869221,"uuid":"144963978","full_name":"hwholiday/microservice_learning","owner":"hwholiday","description":"从零开始微服务框架使用","archived":false,"fork":false,"pushed_at":"2019-01-23T02:48:37.000Z","size":10022,"stargazers_count":44,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-01T01:51:13.363Z","etag":null,"topics":["etcdv3","gin","grpc-go","micro","microservice","nsq","prometheus","xorm"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hwholiday.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-08-16T09:05:42.000Z","updated_at":"2024-04-08T09:23:45.000Z","dependencies_parsed_at":"2022-10-06T05:03:47.456Z","dependency_job_id":null,"html_url":"https://github.com/hwholiday/microservice_learning","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hwholiday%2Fmicroservice_learning","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hwholiday%2Fmicroservice_learning/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hwholiday%2Fmicroservice_learning/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hwholiday%2Fmicroservice_learning/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hwholiday","download_url":"https://codeload.github.com/hwholiday/microservice_learning/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244102712,"owners_count":20398386,"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":["etcdv3","gin","grpc-go","micro","microservice","nsq","prometheus","xorm"],"created_at":"2024-10-11T04:07:59.227Z","updated_at":"2025-03-21T02:30:52.400Z","avatar_url":"https://github.com/hwholiday.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# microservice_learning\n\n- 是使用[Micro](https://github.com/micro/micro),[etcd](https://github.com/coreos/etcd),[nsq](https://github.com/nsqio/nsq),[grpc](https://github.com/grpc/grpc-go),[gin](https://github.com/gin-gonic/gin)等相关技术的一个微服务实例\n\n```\n 只有一个gateway服务器，api节点,db节点,log节点都可以自由添加\n log节点采用nsq,其他节点采用grpc,网关服务对外默认http\n #TODO 添加令牌服务器,链路追踪等功能,prometheus\n \n ```\n![演示图](https://github.com/hwholiday/microservice_learning/blob/master/file/20180824104336.png) \n\n#### 启动命令\n```\netcd\n\nnsqlookupd\n\nnsqd --lookupd-tcp-address=127.0.0.1:4160\n\nnsqadmin --lookupd-http-address=127.0.0.1:4161\n\nmicro --registry=etcdv3   --broker=nsq   api  --handler=http\n\n执行conf中的文件将配置信息读取到etcd中\n\n启动api_agent,log_agent,db_agent\n\ncurl http://127.0.0.1:8080/api/v1/test 查看整个程序的运行情况\n\n```\n\n#### log_agent\n![演示图](https://github.com/hwholiday/microservice_learning/blob/master/file/log_20180827095134.png)\n\n\n#### db_agent\n![演示图](https://github.com/hwholiday/microservice_learning/blob/master/file/db_20180827095209.png)\n\n\n#### api_agent\n![演示图](https://github.com/hwholiday/microservice_learning/blob/master/file/api_20180827095415.png)\n\n## 关于 Micro\n- Micro 是一个微服务工具集。它被用来实现它的特性和接口，同时提供强大的可插拔的架构来保证基础组件可以被替换掉。\n- Micro 专注于解决构建微服务系统的基础需求。它采用了深思熟虑地富有预见性的方式来实现它的设计。\n- 如果你想深入研究 Micro 工具集请[点击这里](https://github.com/micro/micro)\n\n\n## 联系\n\n    QQ: 3355168235\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhwholiday%2Fmicroservice_learning","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhwholiday%2Fmicroservice_learning","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhwholiday%2Fmicroservice_learning/lists"}