multithreading
pkoretic opened this issue · 2 comments
pkoretic commented
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
pkoretic commented
pkoretic commented
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