You are not logged in.
Pages: 1
I'm trying to migrate my datasnap architure to mormot .
As I understood I need a different TSQLHttpClient for each thread .
I thought of creating a stack of active clients (TSQLHttpClient ) and the thread would pop one .
In datasnap I have a CloneConnection to create the duplicates and fill my stack,
How do I do that in mormot ?
Maybe I'm going wrong way , do you have an example of multithreaded client ?
Offline
Yes, TSQLHttpClient should be used thread-safe.
Or only in the main thread.
For multithreaded client sample, see "21 - HTTP Client-Server performance" and http://blog.synopse.info/post/2013/09/1 … -of-mORMot
The system is even able to serve 50000 connected clients at once (and 100 threads), with no data loss.
Offline
Thanks,
As I understand , I create the extra copies of TSQLHttpClient the same way as the first one ,
including call to ClientSetUser with each one ?
Offline
Thanks.
Only one instance of TSQLModel is needed , am I right ?
Offline
Pages: 1