We are running our application in Windows Azure. We are experiencing performance problems with SQL Azure so we are looking into implementing a second level cache. With the ORM that we are currently using this is quite difficult to accomplish.
What about Entity Framework second level cache? Specifically when using Windows Azure cache(*). I know that it is currently not supported out-of-the-box and that are are some wrappers available. But are there any future plans on supporting this out-of-the-box?
(*)
The idea is to use a certain percentage of the Web roles memory for caching.
For example using 5 medium Web roles and 20% memory for cache will mean a consistent cache of 3.5 GB.
Have a look here:
Entity Framework – Second Level Caching with DbContext
SOURCE: http://www.codeproject.com/KB/aspnet/435142/SecondLevelCachingExample.zip
and here:
Implementing second level caching in EF code first
SOURCE: http://www.dotnettips.info/File/UserFile?name=EfSecondLevelCaching.zip