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

Convert kafka future to CompletableFuture by another thread #838

Merged
merged 2 commits into from
Oct 5, 2022

Conversation

chia7712
Copy link
Contributor

@chia7712 chia7712 commented Oct 5, 2022

原本的用法是 kafka internal thread 會重複被使用來處理後續所有 callbacks,這樣的副作用是如果 CompletableFuture chaining 很長的話,可能會影響到其他 requests,因此這隻 PR 將 complete 改成 completeAsync 讓其他執行緒接手 kafka internal thread 的任務

@chia7712 chia7712 force-pushed the use_complete_async branch from 5ac932d to c6540d5 Compare October 5, 2022 16:46
@chia7712 chia7712 merged commit dc67e9c into opensource4you:main Oct 5, 2022
@chia7712 chia7712 deleted the use_complete_async branch November 6, 2022 09:08
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.

1 participant