Skip to content

Can connectrpc work with go grpc middlewares? #686

Answered by jhump
tuananhlai asked this question in Q&A
Discussion options

You must be logged in to vote

@tuananhlai, no I'm afraid it does not. But it does, on the other hand work with regular "net/http" middleware. So many common functions, like authn|z, rate limiting, etc can still easily be integrated with Connect as there a "net/http"-based middleware libraries for these.

One thing that can be done to keep using the gRPC libraries, including this middleware, is to continue using the grpc-go module for your server implementation, but use vanguard-go as middleware in front of that. That allows your gRPC server to accept traffic in the Connect protocol, so you can use Connect from web and mobile clients without having to migrate server code to the connect-go server library.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@tuananhlai
Comment options

@mattrobenolt
Comment options

Answer selected by tuananhlai
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants