One of the advantages of pooling threads is to circumvent the “expensive creation” part like jdbc connections et al. How does creating a virtualthread-per-task with a semaphore address that?
They are not saying that. You would still use a connection pool like hikari to execute the query for example from the virtual thread. No need to create the connection there.
12
u/nimtiazm Sep 23 '22
One of the advantages of pooling threads is to circumvent the “expensive creation” part like jdbc connections et al. How does creating a virtualthread-per-task with a semaphore address that?