Search code examples
asp.net-mvccachingpageviews

for an asp.net-mvc website, how to capture page views in a distributed enviroment?


This question talks about how you can go about storing page views, but I now have a distributed environment (multiple web servers) so the answer in that question don't seem to apply any longer.

What is the best way to capture and store page views for each page on your site in a distributed environment?


Solution

  • In a webfarm instead of using the default in-memory cache you could use a distributed cache such as AppFabric or memcached. Or store the results into a database.