Writing microservices with Go Micro
This is a high level guide to writing microservices with go-micro . If you want to learn more about microservices check out the introductory blog post here and if you want to know more about Micro , the microservice toolkit, look here . Let’s get to it. What is Go Micro? Go Micro is a pluggable RPC based library which provides the fundamental building blocks for writing microservices in Go. The Micro philosophy is “batteries included” with a pluggable architecture. Out of the box, it implements service discovery using consul, communication via http and encoding using proto-rpc or json-rpc. That’s a bit of a mouthful so let’s break it down. Go Micro is: 1 A library written in Go 2 A set of pluggable interfaces 3 RPC based Go Micro provides interfaces for: 1 Service Discovery 2 Encoding 3 Client/Server 4 Pub/Sub A more detailed breakdown can be found here . Why Go Micro? Go Micro started more than a year ago, initially serving a personal need. I...