Accessing Windows Server AppFabric caching from classic ASP application?
I am considering using Windows Server Appfabric for it caching functionality.
I have an existing classic ASP application that I want to rewrite in ASP.NET MVC. However, I want to be able to do this "piecemeal" i.e. a few pages at a time.
The problem is session state between the ASP and ASP.Net MVC application. I could use a database but I would like to use Appfabric since it has good scalabilty, admin, etc.
My question is: Does the Appfabric caching service/funct开发者_StackOverflow社区ionality have an API that I could wrap in .Net and expose to my classic ASP application as a com object?
I could then change all the Session and Application caching in the classic application to use the com object i.e. Appfabric. In this way I can share session state between ASP.Net MVC and classic ASP. I will have to test the performance penalty associated with interop as well.
I recently attended Microsoft Tech'ed and did a small lab for AppFabric caching. It does expose an API which you can use. I am sure you can modify it and make it suitable to your app.
I would recommend you writing a small test app and there are few microsoft labs you can use to try the AppFabric caching API.
Thanks,
Nimesh
Also try NCache http://www.alachisoft.com/resources/samples/sample.php?id=4
FRom the site: "This sample demonstrates sharing sessions between classic ASP and ASP.NET applications using COM+ interoperability and .NET framework. This allows faster conversion of existing ASP applications into ASP.NET applications module by module in incremental iterations while running the classic ASP and the converted ASP.NET portions of your web application side by side."
精彩评论