背景 在之前的文章<漫谈微服务>我已经简单的介绍过微服务,微服务特性是轻量级跨平台和跨语言的服务,也列举了比较了集中微服务通信的手段的利弊,本文将通过RPC通信的方式实现一个增删查Redis的轻量级微服务示例,大部分内容翻译自文章<Microservice in golang, using Redis and gRPC>,中间加上自己的实践和理解. 实验环境 Mac OS go version go1.12.4 darwin/amd64 Docker version 18.09.2…
golang 中国gocn golang Applicable to all database connection pools xorm是一个简单而强大的Go语言ORM库,通过它可以使数据库操作非常简便--文档 Lightweight and fast SQL builder for Go and XORM Go 语言包管理 A web based database admin tool written by Golang support mysql/postgres/sqlite Go 语言…