How scalable is memcache in an enviornment where a cache is potentially getting expired every second. In fact, my question is not just about scalability of memcached but about situations where a model is continuously changing and the best way to scale that type of environment. One might say, why cache if the cache is getting expired every second.
Consider this in an hypothetical app, where people are posting marking posts as favorites and let's just consider that there are thousands of people constantly marking posts favorite and creating a favorite record as a result. With each insertion the post view needs to be updated to show the current stats about posts, how many people made it favorite, a user's favorite count etc etc.
We were thinking this could be cached to show only a snapshot taken every x many minutes..but is there a good way to make this more real time in rails?