Client concurrency

RCF support and general discussion.
Post Reply
ReefSmacker
Posts: 1
Joined: Wed Jul 11, 2018 5:58 am

Client concurrency

Post 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

jarl
Posts: 238
Joined: Mon Oct 03, 2011 4:53 am
Contact:

Re: Client concurrency

Post 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.
Kind Regards

Jarl Lindrud
Delta V Software
http://www.deltavsoft.com

Post Reply