grpcurl icon indicating copy to clipboard operation
grpcurl copied to clipboard

Channel reuse on unary endpoint

Open fmorency opened this issue 1 year ago • 0 comments

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!

fmorency avatar Oct 15 '24 20:10 fmorency