grpc-go-client-side-load-balancing-example

module
v0.0.0-...-e556843 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2023 License: MIT

README

gRPC client side load balancing example using Go

This is a gRPC client-side load balancing example on top of grpc-go.

The only load balancer bundled to grpc-go is grpc.RoundRobin. grpc RoundRoubin requires a grpc.Resolver which is intended to implement a DNS resolver or an other resourse resolution mechanism like Consul.

In this example I implemented a grpc.Resolver which only returns fixed servers initially passed. It is good for trying gRPC load balancing instantly.

Prequirements

Run

$ ./run.sh

LICENSE

MIT @hakobe

Directories

Path Synopsis
Package echo is a generated protocol buffer package.
Package echo is a generated protocol buffer package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL