Skip to content

Conversation

@glbrntt
Copy link
Collaborator

@glbrntt glbrntt commented Mar 17, 2020

Motivation:

Configuring a server with err... Configuration can be a bit unwieldy
and makes it easy for users to not use TLS. It's also a slight SemVer burden
since we'd want to add a new init each time we add a member.

Modifications:

  • Add a Server.Builder
  • Replace existing use of Server.Configuration with the builder
  • Update docs

Result:

  • Server starting API is nicer
  • You have to type insecure to not use TLS

Motivation:

Configuring a server with err... `Configuration` can be a bit unwieldy
and makes it easy for users to not use TLS. It's also a slight SemVer burden
since we'd want to add a new `init` each time we add a member.

Modifications:

- Add a `Server.Builder`
- Replace existing use of `Server.Configuration` with the builder
- Update docs

Result:

- Server starting API is nicer
- You have to type `insecure` to not use TLS
@glbrntt glbrntt added nio 🆕 semver/minor Adds new public API. labels Mar 17, 2020
@glbrntt glbrntt requested a review from Lukasa March 17, 2020 16:46
Copy link
Collaborator

@Lukasa Lukasa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, I love it. :shipit:

@glbrntt glbrntt merged commit 9a8d023 into grpc:nio Mar 17, 2020
@glbrntt glbrntt deleted the gb-server-builders branch August 5, 2020 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🆕 semver/minor Adds new public API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants