Memory Mapping File C# in Web Farm

177 Views Asked by At

I have a web service developed in WCF and its deployed as a Web Farm(3 servers). We are trying to implement caching using MemoryMappedFile. How does memory mapping behave in Web Farm. Is there any option to manage the MemoryMappedFile across servers?

1

There are 1 best solutions below

0
Davit Tvildiani On

If you task is to do caching between servers, memory mapped file will not be good solution.

You can use proper caching solution like Redis for that.

You will also need c# library to communicate with Redis, you can use this one: https://servicestack.net/redis