Skip to content

Thread pool tuning best practice suggestions? #129

Answered by bbakerman
bsara asked this question in Q&A
Discussion options

You must be logged in to vote

I don't think thread pooling policies are batch loader specific really. It always depends on your load profile as you say.

I think the style of your application architecture matters however. Will the calls during the batch load be reactive or imperative? eg will they block during batch loader call and hence use up the thread while it completes?

If you are reactive then you should not have to worry about thread pools much as all. Use the "Schedulers" of you reactive framework (Spring Project Reactor / Quarkus Mutiny) and the event loop thread pools are set for you. Typically they end up with thread pools of cpu count * 2

If you are using an imperative architecture and the thread blocks to …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bbakerman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants