|
|
|
|
|
by SableDb
812 days ago
|
|
It is multi-threaded (configurable, you can set it to a specific number configuration file, or use the magic value 0 where SableDb decides based on the number of cores divided by 2). Each incoming connection is assigned to a worker thread, and two tokio tasks are created for the connection (one for reading and another for writing). Using tokio allowed me to use the `async` code without using "callback hell" so the code looks clean and readable in a single glance without the need to follow callbacks |
|