WCF Server configuration for storing data

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

+3
source share
2 answers

It looks like you are probably looking for a reliable WCF service ( link ). Longer-running services can maintain state between service calls.

Chapter 4 in Juval Lowy Programming WCF Services ( ) also provides information on Durable Services, as well as sessions that may also help.

, , WCF - .. . , , ( , ).

+2

instancing/ concurrency? , singleton ?

- , .

-, , , webHttpBinding, WCF.

- , .

, cookie WCF .

- WCF, WCF ( cookie ). , , Google.

0

All Articles