DEV Community

Cover image for gRPC connection library in Go
Deeptiman Pattnaik
Deeptiman Pattnaik

Posted on

gRPC connection library in Go

Hello,

I have written a simple grpc-connection-library in Go.

Features:

  1. The gRPC connection flow among server/client synchronized using the Ping/Pong services.

  2. gRPC connection library supports connection pool reuse the gRPC client connection instance.

  3. Concurrency Pipeline design pattern synchronizes the data flow among several stages while creating the connection pool.

  4. The selection process of the gRPC connection instance from the pool is designed using the reflect.SelectCase that supports pseudo-random technique for choosing among different cases.

  5. go-batch processing library implemented to divide the connection instances from the pool into batches.

  6. The grpc-retry policy helps to retry the failure of gRPC connections with backoff strategy.

  7. The grpclog will show the internal connection lifecycle that will be useful to debug the connection flow.

Github:

https://github.com/Deeptiman/grpc-connection-library

Wiki:

https://github.com/golang/go/wiki/gRPC-connection-library

Release: v1.0.0

Discussion (0)