Page 1 of 1

Client concurrency

Posted: Wed Jul 11, 2018 6:06 am
by ReefSmacker
Hi,

We've been using RCF 1.3.1 for many happy years but now need to have the RCFclient in a DLL that is called concurrently.
This isn't working using a singleton model (static).
Is there a way within RCF (any version) to provided client pooling.

The client DLL is being loaded by SQL Server and the calls come from many different spid's at any time.

Thanks

Re: Client concurrency

Posted: Fri Jul 13, 2018 7:56 pm
by jarl
Hi,

There isn't a connection pool concept in RCF but in this case I think the simplest solution might be to use a thread local variable to hold a RcfClient<> instance, and that way each thread that calls in gets its own connection.