fullstorydev / fullstorydev/grpcurl
Channel reuse on unary endpoint
- Dominant language
- Go
- Stars
- 12.8k
- Forks
- 580
- Avg merge
- 1h 8m
- Merged PRs (30d)
- 5
Description
Can `grpcurl` re-use the gRPC channel to perform multiple queries on a unary endpoint?
I'm doing something like
```shell
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.,
```shell
grpcurl -plaintext -d '{"height": 1}{"height": 2}' localhost:9090 path.to.SomeEndpoint
```
is not supported.
Thank you for this wonder tool!
Contributor guide
No contributing guide indexed for this repository
Research direction
The issue names only the grpcurl command and a unary endpoint; no files, tests, or implementation entry points are provided. Start by locating the command handling for repeated invocations and determine the intended channel-reuse behavior and completion criteria before estimating the work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- api, cli
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100