Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate gRPC service filters #1887

Merged
merged 2 commits into from
Oct 15, 2021

Conversation

chemicL
Copy link
Contributor

@chemicL chemicL commented Oct 14, 2021

Motivation:

gRPC service filters are not as flexible as HTTP service filters. Their
reuse is limited due to the strict typing with gRPC definitions. HTTP
filters are the best choice most of the time. If required users can
embed their custom logic in the actual service implementation where the
decoded protos can be accessed.

Modifications:

  • Deprecated GrpcServiceFilterFactory,
  • Deprecated GrpcServiceFactory#appendServiceFilter and
    GrpcServiceFactory#appendServiceFilterFactory methods,
  • Generator adds deprecations to corresponding generated
    classes/interfaces and methods.
  • Added deprecation warning in the project documentation.

Result:

Service filters have been deprecated and are prepared for removal in a
future release.

Motivation:

gRPC service filters are not as flexible as HTTP service filters. Their
reuse is limited due to the strict typing with gRPC definitions. HTTP
filters are the best choice most of the time. If required users can
embed their custom logic in the actual service implementation where the
decoded protos can be accessed.

Modifications:

- Deprecated `GrpcServiceFilterFactory`,
- Deprecated `GrpcServiceFactory#appendServiceFilter` and
  `GrpcServiceFactory#appendServiceFilterFactory` methods,
- `Generator` adds deprecations to corresponding generated
  classes/interfaces and methods.
- Added deprecation warning in the project documentation.

Result:

Service filters have been deprecated and are prepared for removal in a
future release.
@chemicL chemicL self-assigned this Oct 14, 2021
@chemicL chemicL merged commit ee6500c into apple:main Oct 15, 2021
chemicL pushed a commit to chemicL/servicetalk that referenced this pull request Oct 18, 2021
Motivation:

gRPC service filters are not as flexible as HTTP service filters. Their
reuse is limited due to the strict typing with gRPC definitions. HTTP
filters are the best choice most of the time. If required users can
embed their custom logic in the actual service implementation where the
decoded protos can be accessed.

Modifications:

- Deprecated `GrpcServiceFilterFactory`,
- Deprecated `GrpcServiceFactory#appendServiceFilter` and
  `GrpcServiceFactory#appendServiceFilterFactory` methods,
- `Generator` adds deprecations to corresponding generated
  classes/interfaces and methods.
- Added deprecation warning in the project documentation.

Result:

Service filters have been deprecated and are prepared for removal in a
future release.
@chemicL
Copy link
Contributor Author

chemicL commented Oct 18, 2021

0.41: 4083567

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants