I currently have a service in WCF where it processes requests made by a client. However, it caches some data that the client sends. Then it performs data calculations.
At any time, the client should be able to retrieve some data. This is done at the discretion of the user (when the button is pressed, an AJAX request is sent to get some data).
The problem I encountered is that as soon as another client connects and starts sending requests, the data that the original client sent is now distorted.
I was wondering how I can solve this. I tried using sessions, as I was looking for a way to create an instance of a “server object” for every client that wants to connect to it. Not lucky yet.
This question is related to this:
WCF Closing a Connection / Releasing Resources
source
share