Skip to content

Conversation

@glbrntt
Copy link
Collaborator

@glbrntt glbrntt commented Dec 6, 2023

Motivation:

When configuring a client and server must users will specify only the transport and services (for a server) and potentially interceptors too. This should be the "easy" path. Moreover these are all reference types so it makes sense to separate them from "raw" configuration.

Creating a client also diverged somewhat from the server. Having both follow a similar pattern simplifies things for users.

Modifications:

  • Move interceptors from the client config to the init.
  • Modify the server to follow a similar pattern to the server.

Results:

Server and client are configured similarly.

Motivation:

When configuring a client and server must users will specify only the
transport and services (for a server) and potentially interceptors too.
This should be the "easy" path. Moreover these are all reference types
so it makes sense to separate them from "raw" configuration.

Creating a client also diverged somewhat from the server. Having both
follow a similar pattern simplifies things for users.

Modifications:

- Move interceptors from the client config to the init.
- Modify the server to follow a similar pattern to the server.

Results:

Server and client are configured similarly.
@glbrntt glbrntt requested a review from FranzBusch December 6, 2023 15:09
@glbrntt glbrntt added the version/v2 Relates to v2 label Dec 8, 2023
@glbrntt glbrntt merged commit 7986535 into grpc:main Dec 8, 2023
@glbrntt glbrntt deleted the rethink-client-server-config branch December 8, 2023 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

version/v2 Relates to v2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants