-
-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Golang: micro service framework - go-micro #88
Comments
micro service framwork diff:
中文文档:对比其他框架:
ref:关于 micro service 的定义:go-micro:项目说明:
官方示例合集:
ref:
项目用户列表:示例Demo:go-micro 教程:
基于 go-micro 的项目:
FAQ:1. API,Web和SRV服务有什么区别?
2. Micro是否支持gRPC?
|
go-micro 支持 rest API:
go-micro 集成各种插件服务:1. 集成 swagger:
2. 问题跟踪系统:
go-micro 官方文档摘要:ref: 参考实践:
0. 项目脚手架: micro
使用示例:
cli 工具支持命令:
1. 安装指南:go get github.com/micro/go-micro
go get github.com/micro/micro
# Demo:
go get github.com/micro/examples/greeter/srv && srv
2. 配合 grpc-gateway 项目:3. 服务定义:写一个服务:MQ 发布/订阅:4. 配置读取:
5. 插件集:
6. 部署:基于 docker:基于 kubernetes: |
go micro:1. 准备环境: consul 依赖服务注册
2. 创建项目:
3. 启动项目:
4. 查看启动的微服务:
|
从0到1创建一个完整的micro项目:
1. 创建git项目:
2. 安装 micro 环境:
3. 使用micro脚手架初始化工程:
4. 编译服务:
5. 预先启动 consul:
6. 启动服务:
7. 调用服务:
|
go-micro example:
greeter:
booking:
|
go-micro:推荐目录结构:
|
go-micro v4:
micro:
|
相关:
The text was updated successfully, but these errors were encountered: