3

Having used PHP on Linux a lot, I'm used to using memcache so that the database doesnt have to be accessed on every single request. What do people use on Windows the achieve this? From the asp.net mvc applications which I've seen, none of them use any sort of cache, they just hit the database on every request? Is this common, and if so, why is it acceptable?

4 Answers 4

8

You can use memcached also. There are also other alternatives. You may also check Scott Gu's post about the new cache extensibility model introduced in ASP.NET 4.0.

Sign up to request clarification or add additional context in comments.

Comments

2

There is a Memcache equivalent for ASP.NET, it is AppFabric (code name Velocity). You can find out how to install and use it here, there are also detail instruction and whitepapers.

4 Comments

Be aware that every node in an AppFabric caching cluster must be running Windows Server Enterprise Edition. This greatly increases the cost of choosing AppFabric over Memcache.
@NathanAldenSr That is not correct since october 2012. Here you have a post in which its support for windows server 2012 standard was communicated. Also windows server 2008 is supported. blogs.msdn.com/b/workflowteam/archive/2012/10/25/…
@Tien-Do Instead of using Memcache, could I use Microsoft AppFabric Caching for communication between PHP and ASP.NET? Will Microsoft AppFabric Caching work with PHP? If yes, how well does Microsoft AppFabric Caching work with PHP?
@user1338998 Sorry I have no information on PHP since I've never worked with PHP. But like other MS frameworks I don't think it has API for PHP, you'd better to check MS site for detail information.
2

Very few professionally built mvc apps would 'hit the database on every request', mvc is still built on top of the asp.net infrastructure which has a robust and proven cacheing engine.

FYI: Microsoft's memcache equivalent is called Velocity http://blogs.msdn.com/b/velocity/

2 Comments

+1 for "Very few professionally built mvc apps would 'hit the database on every request"
"mvc is still built on top of the asp.net infrastructure which has a robust and proven cacheing engine." Any more details on this?
0

You can use Memcache on Windows as well. A very good version of Memcache is available from Northscale.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.