Initialization
A database service is started simply by calling: init()
.
This function initializes the database, spawns threads, and returns a:
- Read handle to the database
- Write handle to the database
- The database itself
These handles implement the tower::Service
trait, which allows sending requests and receiving responses async
hronously.