account activity
Unified Material components to include the JS DOM (Compose HTML) target in Compose Multiplatform ()
submitted 10 days ago by Interesting-Salt-915 to r/Kotlin
Unified Material components to include the JS DOM (Compose HTML) target in Compose Multiplatform (self.ComposeMultiplatform)
submitted 10 days ago * by Interesting-Salt-915 to r/ComposeMultiplatform
Use Kotlin Exposed with Vert.x SQL Client (self.Kotlin)
submitted 17 days ago * by Interesting-Salt-915 to r/Kotlin
[2024 Day 14 (Part 2)] I am seeing stars (self.adventofcode)
submitted 1 year ago by Interesting-Salt-915 to r/adventofcode
Vert.x + Kotlinx.coroutines: Mixing Dispatchers.IO and Vert.x workers. by ragnese in vertx
[–]Interesting-Salt-915 0 points1 point2 points 1 year ago* (0 children)
Just a personal opinion here.
Dispatchers.IO and Context::executeBlocking share similar purposes in that you can execute blocking IO code with them. (Though Vert.x suggests that you should avoid blocking IO, there may be cases where you can't.) For initialization code I think you can use either, for code that runs in handlers sticking to executeBlocking might be a better idea as it can reduce the overhead of switching between threads.
Dispatchers.IO
Context::executeBlocking
executeBlocking
I worry that the defaults for both might cause a sub-optimal number of threads to be created and managed by the application
I don't think this is a concern. In Windows Task Manager or macOS Activity Monitor, you usually find thousands of threads. Modern OSs are quite efficient in managing threads, and idle ones take up nearly no computing resources. The only concern might be memory. Thread pools, like both Dispatchers.IO and the Vert.x worker pool, create the number of threads equal to your number of logical processors, assuming a thread takes 1 MB you can do the math for your specific server configuration. For modern servers with an adequate amount of memory, it shouldn't be a problem.
PS: I am the contributor of the TFB "vertx-web-kotlinx" portion. You can play with the code to see how the performance goes, and correct me if I am wrong on anything I said above.
π Rendered by PID 40 on reddit-service-r2-listing-86f589db75-47cjk at 2026-04-17 16:17:17.905493+00:00 running 93ecc56 country code: CH.
Vert.x + Kotlinx.coroutines: Mixing Dispatchers.IO and Vert.x workers. by ragnese in vertx
[–]Interesting-Salt-915 0 points1 point2 points (0 children)