Skip to content

Distributed tracing with Go Microservice

Notifications You must be signed in to change notification settings

qozm/grpcservice

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Distributed tracing with Go Microservice

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%