Threads on an XData/Sparkle Service.

Hello,

I have an XData Server that uses Devart IBDAC database components and I am observing a curious behavior when multiple calls to any single method comes in.

My expectation was that every call would be serviced in it’s own thread. Instead, what I am seeing seems to indicate that I am using a single thread to service multiple calls.

Can you point me to any article, or documentation that talks about setting up an xData server properly. I followed a few videos from Holger but I probably missed something he did.

However, I can’t quite put my finger on it. Is there any example that I could take a look that handles multiple requests from connections that I can use to compare with what I am doing?

Any pointers will be appreciated.

Thanks,

Alan

XData is very non-opinionated when it comes to database connections, so it really depends on how you are using it.

And also, how you are actually observing that a single thread is servicing multiple calls. What exactly did you measure?

Usually it depends on if you are using the XData connection pool, or if you are creating the connection yourself, the pool size...?

If you could give me more information about how you are configuring your database connection, how are you retrieving it form from the services, etc., I can try to help you in a better way.