Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Channel reuse on unary endpoint #491

Open
fmorency opened this issue Oct 15, 2024 · 0 comments
Open

Channel reuse on unary endpoint #491

fmorency opened this issue Oct 15, 2024 · 0 comments

Comments

@fmorency
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant