Creating and testing gRPC server interceptors in Ruby

If your experience is rooted in HTTP-land, then you are probably familiar with the concept of server middleware. Interceptors are analogous, but in gRPC land. When first building gRPC interceptors, I had trouble figuring out how to do it in Ruby. gRPC is not that widely used in the Ruby ecosystem, and there are not many resources on how to properly do it. Also, my experience with writing unit and integration tests for interceptors were that there is even less documentation on the topic....

December 12, 2021 · 19 min · Ilija Eftimov