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 HTTP/gRPC offloadWithThreadAffinity #1564

Merged
merged 2 commits into from
May 17, 2021

Conversation

bondolo
Copy link
Contributor

@bondolo bondolo commented May 14, 2021

Motivation:
The method used for ensuring thread affinity used by the HTTP/gRPC builders, offloadWithThreadAffinity() will be removed in a near future version of ServiceTalk. The offered alternative is to use a single threaded executor which provides the same affinity guarantee.

Modifications:
The offloadWithThreadAffinity() builder methods are marked deprecated. Some existing tests which reference the thread based signal offloader are converted to the default signal offloader.

Result:
Deprecation warning provided for methods which will eventually be removed.

Motivation:
The method used for ensuring thread affinity used by the HTTP/gRPC
builders will be removed in a near future version of ServiceTalk. The
offered alternative is to use a single threaded executor which provides
the same affinity guarantee.
Modifications:
Methods are marked deprecated. Some existing tests which reference the
thread based signal offloader are converted to the default signal
offleader.
Result:
Deprecation warning provided.
@bondolo bondolo requested a review from Scottmitch May 15, 2021 00:16
@bondolo bondolo self-assigned this May 15, 2021
@bondolo bondolo added the API PR with API changes (New or Deprecated) label May 15, 2021
@bondolo bondolo merged commit a31605d into apple:main May 17, 2021
@bondolo bondolo deleted the deprecate-offloadWithThreadAffinity branch May 17, 2021 23:39
hbelmiro pushed a commit to hbelmiro/servicetalk that referenced this pull request May 23, 2021
Motivation:
The method used for ensuring thread affinity used by the HTTP/gRPC
builders will be removed in a near future version of ServiceTalk. The
offered alternative is to use a single threaded executor which provides
the same affinity guarantee.
Modifications:
Methods are marked deprecated. Some existing tests which reference the
thread based signal offloader are converted to the default signal
offleader.
Result:
Deprecation warning provided.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API PR with API changes (New or Deprecated)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants