一个微服务 Demo 将我三年 Go Web 开发经验传授给你


本文摘自网络,作者,侵删。

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

本文来自:Segmentfault

感谢作者:.container .card .information strong

查看原文:一个微服务 Demo 将我三年 Go Web 开发经验传授给你

相关阅读 >>

Golang 适合做web开发吗

chaos-mesh on mips64

模块二 Go语言进阶技术-错误处理(下)

Go实现字符串的逆序

cis 657 nachos system calls for file i/o

手撸Golang 基本数据结构与算法 堆排序

Go语言接口

Golang中使用rand产生随机不重复数字

手撸Golang 基本数据结构与算法 插入排序

cmd执行Golang乱码解决方法

更多相关阅读请进入《Go》频道 >>




打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...