concurrency and thread safety with appfabric
-
domingo, 19 de fevereiro de 2012 20:06
I am currently working with appfabirc caching using the following methods to interact with the cache:
Get, Put, Remove
I am working with a c# application that have numerous users therefore I am concerned with concurrency and thread safety. I had in place a locking mechanism that uses a locking object when interacting with the cache eg.
lock (object)
{
// cache interaction
}
I am wondering is this required or does appfabric handle thread safety and concurrency? Any assistance with this would be great.
Todas as Respostas
-
segunda-feira, 20 de fevereiro de 2012 06:10
App Fabric Cache has 2 concurrency models:
1. Optimistic Concurrency Model
2. Pessimistic Concurrency Model
You can read more about these concurrency models here - http://msdn.microsoft.com/en-us/library/ee790890.aspx
You can also read about concurrenty methods at - http://msdn.microsoft.com/en-us/library/hh351387.aspx- Editado RanganathG [MSFT]Microsoft Employee segunda-feira, 20 de fevereiro de 2012 06:11
- Sugerido como Resposta RanganathG [MSFT]Microsoft Employee terça-feira, 21 de fevereiro de 2012 05:37
-
segunda-feira, 20 de fevereiro de 2012 17:53Thanks for your assistance with this.

