grpcurl
grpcurl copied to clipboard
Channel reuse on unary endpoint
Can grpcurl re-use the gRPC channel to perform multiple queries on a unary endpoint?
I'm doing something like
grpcurl -plaintext -d '{"height": 1}' localhost:9090 path.to.SomeEndpoint
grpcurl -plaintext -d '{"height": 2}' localhost:9090 path.to.SomeEndpoint
...
grpcurl -plaintext -d '{"height": N}' localhost:9090 path.to.SomeEndpoint
and I wonder if there's a better approach.
My endpoint doesn't support streaming, i.e.,
grpcurl -plaintext -d '{"height": 1}{"height": 2}' localhost:9090 path.to.SomeEndpoint
is not supported.
Thank you for this wonder tool!