gRPC Go has support for "interceptors", i.e. middleware that is executed either on the gRPC Server before the request is passed onto the user's application logic, or on the gRPC client either around the user call. It is a perfect way to implement common patterns: auth, logging, tracing, metrics, validation, retries, rate limiting, and more, which can be great generic building blocks that make it easy to build multiple microservices. Especially for observability signals (logging, tracing, metrics) interceptors offer semi-auto-instrumentation that improves the consistency of your observability and allows great correlation techniques (e.g. exemplars and trace ID in logs). Demo-ed in examples. This repository offers ready-to-use middleware that implements gRPC interceptors with examples. In some cases, dedicated projects offer great interceptors, so this repository skips those, and we link them in the interceptors list.

Features

  • Covers known interceptors that users use for their Go microservices
  • Documentation available
  • Examples available
  • Interceptors, helpers and utilities
  • This repository offers ready-to-use middlewares that implements gRPC interceptors with examples
  • Great generic building blocks that make it easy to build multiple microservices easily

Project Samples

Project Activity

See All Activity >

License

Apache License V2.0

Follow Go gRPC Middleware

Go gRPC Middleware Web Site

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Go gRPC Middleware!

Additional Project Details

Programming Language

Go

Related Categories

Go Libraries, Go Observability Tool

Registered

2024-05-17