I am building a aync single threaded server that receives data from clients. It processes the data and then saves it to the MySQL Database.
The problem is that, MySQL C API does not support non-blocking calls and asio mainly does not like blocking calls.
So I am thinking something like Python Twisted's deferToThread() like semantics. Is there anyone who already developed such thing? Or should I implement it?