Skip to content

Comments

Switch from FixedThreadPool to VirtualThreadPerTaskExecutor#1

Open
chrlns wants to merge 1 commit intobhavanki:masterfrom
chrlns:vthread_exec
Open

Switch from FixedThreadPool to VirtualThreadPerTaskExecutor#1
chrlns wants to merge 1 commit intobhavanki:masterfrom
chrlns:vthread_exec

Conversation

@chrlns
Copy link

@chrlns chrlns commented Aug 11, 2025

Virtual threads are cheap and have next to no overhead, so they can be used on a per-connection basis. They are automatically mapped to (a limited and system-dependend number of) platform threads.
So the number of concurrent connections it no longer limited by the number of fixed worker threads handling the connections.

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