7

Has anyone considered or already using DD4T with AppFabric caching? If so, which approach have you implemented (see possibilities from https://stackoverflow.com/questions/17917135/developing-net-mvc3-application-for-caching-using-appfabric-1-1)

6

We are using AppFabric on our current DD4T project and use it as a distributed data cache. XML from DD4T is cached in AppFabric and in our scaled out scenario all servers connect to this AppFabric cachecluster.

You could also use it as a distributed outputcache (check out the local cache option for performance). One server fills the outputcache, other servers are benefiting from it.

  • 1
    Albert, how are you invalidating your cache items? When I last checked a ChangeMonitor object couldn't be used with AppFabric so you'd need another process to check last published dates. – Neil Mar 16 '14 at 19:14
  • 1
    We use a storage extension. As soon as someone publishes an item, the AppFabric cache is invalidated. – Albert Romkes Mar 17 '14 at 6:22
  • 1
    So that has to be written in Java right? – Neil Mar 17 '14 at 12:06
  • 1
    Indeed. The Storage Extension is in Java. It then puts an invalidationmessage (XML) in a queue (ActiveMq). A .NET service receives this messages and invalidates the item in AppFabric. – Albert Romkes Mar 17 '14 at 12:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.