Hello,
Is it possible to use UniDAC in multi-threaded applications?
I work on a project that is an Application Server, and has threads to handle requests, and each thread has its own connections (TFDConnection's), TFDQuery's and TFDTable's, under this scenario or multi-threaded architecture, does UniDAC work?
Thanks in advance.
UniDAC in an Application Server (multi-thread)
-
- Posts: 29
- Joined: Mon 10 Dec 2018 23:49
Re: UniDAC in an Application Server (multi-thread)
To ensure thread safety in multi-threaded UniDAC applications, you should use a separate TUniConnection instance for each thread.
Thus, all you need to do is to replace TFDConnection's, TFDQuery's and TFDTable's with similar UniDAC components.
Thus, all you need to do is to replace TFDConnection's, TFDQuery's and TFDTable's with similar UniDAC components.
-
- Posts: 29
- Joined: Mon 10 Dec 2018 23:49
Re: UniDAC in an Application Server (multi-thread)
Perfect, thank you very much.