/grpcservice

Distributed tracing with Go Microservice

Primary LanguageGo

gRPC Service

Other language:

This is the project to show how Go Microservice works, and it has two major functionalities. The first is how distributed tracing works with Go Microservice using OpenTracing and Zipkin. The second is service resilience, which includes the following:

  • Timeout
  • Retry
  • Rate limitting
  • Circuit Breaker
  • Fault Injection
  • Bulkhead

Please read the following articles for detail:

  1. How to Do Tracing in Go Microservice?

  2. Service Resilience in Go Microservice

I originally took the code from Alan Shreve's gRPC cache service, and added above features into it.

Getting Started

Installing Zipkin

Even without Zipkin, the rest of the application still works.

https://zipkin.io/pages/quickstart

Installing Application

go get github.com/jfeng45/grpcservice

Run Server

cd server
go run serverMain.go

Run Client

cd client
go run clientMain.go

License

MIT License