Facebook Twitter Gplus LinkedIn YouTube E-mail RSS
Home .Net Ultra fast local cache implementation for .NET

Ultra fast local cache implementation for .NET

Native In-Memory Performance for .NET Clients

As you may know, since version 6.6 GigaSpaces XAP.NET has become a separate offering, with a native .NET look & feel, considerably better performance and improved ease of use. We are continuing to improve XAP.NET, and one feature that users have consistently been asking for is native .NET local cache support.   The local cache is actually a client side construct which caches the information read from the space and continuously updates it when it changes in the space. This enables client applications to achieve in memory performance for read operations and decrease the load off the central space.

Some Technical Details

This feature existed for a while now in both the Java and .NET versions, but now we've implemented it natively in .NET. The main concept of this cache is that it will wrap a space proxy and drastically boost the speed of id based read operations (Over than a million operations per second). The local cache API is identical to the remote ISpaceProxy API, with a few cache related add-ons. When your code executes an ID-based operation on the space, the cache will detect it, and it will first try to retrieve the requested object from the native local cache. It will go to the central space in case of a cache miss. A read operation is considered an id-based operation when the supplied template only contains actual value in its SpaceID property, and all the other properties have null values.

One of the most interesting parts of the local cache implementation is that due to the fact that it needs to be highly concurrent (incase many client threads access the local cache concurrently), we have implemented highly concurrent native .NET data structures to support it, such as general purpose concurrent dictionaries and more cache specific such as concurrent eviction strategies.

So stay tuned, more details to come when this baby is out :)

Eitan Yanovsky

 Share on Facebook Share on Twitter Share on Reddit Share on LinkedIn
5 Comments  comments 
  • Pingback: The GigaSpaces Blog » Blog Archives » .NET local cache is out

  • Pingback: The GigaSpaces Blog » Blog Archives » Algorithmic Excel Trading with GigaSpaces

  • http://www.mvpcaps.com/ Baseball Hats

    Wow it is very useful for me

  • http://www.gajotres.com/register asp.net, c#,javascript

    You actually make it seem so easy with your presentation but I find this matter to be actually one thing which I feel I’d by no means understand. It seems too complex and extremely huge for me. I am looking ahead to your subsequent publish, I will try to get the cling of it!

  • http://www.dzonlinehost.com Web Hosting From Only $1.89 a Month

    Wonderful issues altogether, you just gained a new reader. What would you suggest about your post that you made a few days in the past? Any sure?

© GigaSpaces XAP Blog - The In-Memory Computing Platform