|
|
|
|
|
by carllerche
3103 days ago
|
|
One can spawn as many reactors as you would like. The only thing a reactor does is receive events off of epoll (or other system selector) and notify the associated task. The task could be on the reactor thread or across a different thread. Generally speaking, how to optimize concurrency for a network based application is pretty use case specific. tl;dr, you can fully take advantage of many core systems w/ Tokio. |
|
Does that library support such use case? Or does it imply 1-to-many relation between reactors and files/sockets? The latter doesn’t scale well.