Golang-microservice-demo
本我的项目为 Golang 开发的一个微服务 server demo,展现了 grpc、gorm 等罕用库的应用,以及 k8s、opentracing 等风行生态的适配,错误处理、Context、Chan 等编码技巧,测试驱动开发的尝试。是作者对本人 Go web
开发教训的记录和总结,配套文档可点击链接查看。
我的项目代码:https://github.com/win5do/go-...
Dependencies
- grpc
- grpc-gateway
- grpc-middleware
- gorm v2
- opentracing / jaeger
- gin
- gomock
Design
- 文档生成
- 简化的 DDD 架构
- DB 分布式锁
- Repository pattern
- 高可用、横向扩大
- Error with stackTrace
- Context
- Unit test / Integrate test
- Deploy with Docker / Kubernetes