grpc / grpc/grpc-rust

Example of how to integrate a client for another gRPC service

Open
#2,721 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
12.5k
Forks
1.3k
Avg merge
4d 7h
Merged PRs (30d)
24

Description

## Feature Request

### Motivation

I appreciate the effort that has been put into the examples and documentation for this project. However, I could not easily find an example of what to do when calling another gRPC service from inside a server.

Specifically, I have the protobuf service definitions for another service, and I need to generate a client from them and call it. There are namespace conflicts between it and the protobuf definition of my own service.

Right now, to work around this, I have created a subcrate that builds the client protobuf. Is there a better way to do this? The meaning of some of the functions in `build.rs` is often opaque, and it is very likely that I have missed something. Thank you.

Contributor guide

Open the contributing guide

Research direction

Start with the existing examples and the project's build.rs guidance for generating protobuf clients. Determine how an application can generate and call a client for another gRPC service without namespace conflicts, including whether the subcrate workaround is necessary. Done means adding a clear, runnable example or documentation that demonstrates the supported integration pattern.

Written by the indexing model from the issue text.

Assessment

Tech stack
grpc, rust
Domain
backend-api-design, documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.