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

Remove thread sticky context feature #5436

Merged
merged 1 commit into from
Jan 8, 2025
Merged

Remove thread sticky context feature #5436

merged 1 commit into from
Jan 8, 2025

Conversation

vietj
Copy link
Member

@vietj vietj commented Jan 8, 2025

Motivation:

Thread sticky context was introduced in Vert.x 4 in order to maintain callback ordering when submitting tasks from a non vertx thread.

Vert.x 5 introduces the sticky event-loop feature that implements the same idea for shadow contexts.

In addition shadow context references cannot be reasonnably maintained.

Dropping sticky context support does not break the original intent of the feature and brings behavior consistency when deadling with foreign contexts.

Changes:

Drop stick context feature.

Motivation:

Thread sticky context was introduced in Vert.x 4 in order to maintain callback ordering when submitting tasks from a non vertx thread.

Vert.x 5 introduces the sticky event-loop feature that implements the same idea for shadow contexts.

In addition shadow context references cannot be reasonnably maintained.

Dropping sticky context support does not break the original intent of the feature and brings behavior consistency when deadling with foreign contexts.

Changes:

Drop stick context feature.
@vietj vietj added this to the 5.0.0 milestone Jan 8, 2025
@vietj vietj self-assigned this Jan 8, 2025
@vietj vietj merged commit 56a122a into master Jan 8, 2025
8 checks passed
@vietj vietj deleted the remove-sticky-context branch January 8, 2025 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant