Skip to content

Channel reuse on unary endpoint #491

@fmorency

Description

@fmorency

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions