pkoretic/recurse

multithreading

Closed this issue · 2 comments

add multiple threads support

standard multithreaded implementation
http://doc.qt.io/qt-5/qtnetwork-threadedfortuneserver-example.html

alternatively investigate if we could process middlewares after request is received in a thread pool
http://doc.qt.io/qt-5/qtconcurrent.html

benchmark both and avoid mutexes, use signals and events instead

To avoid more complexity for the user we recommend using QtConcurrent as shown in examples sqlite_nonblocking and postgres_nonblocking
in the future plan is to have all blocking operations (file, database) wrapped in threaded implementations