Book Image

Microsoft Windows Server AppFabric Cookbook

Book Image

Microsoft Windows Server AppFabric Cookbook

Overview of this book

Windows Server AppFabric provides a set of integrated capabilities that extend IIS and the Windows Server platform making it easier to build, scale and manage composite applications today. Windows Server AppFabric delivers the first wave of innovation within an exciting new middleware paradigm which brings performance, scalability and enhanced management capabilities to the platform for applications built on the .NET Framework using Windows Communication Foundation and Windows Workflow Foundation.'Microsoft Windows Server AppFabric Cookbook' shows you how to get the most from WCF and WF services using Windows Server AppFabric leveraging the capabilities for building composite solutions on the .NET platform. Packed with over 60 task-based and immediately reusable recipes, 'Microsoft Windows Server AppFabric Cookbook' starts by showing you how to set up your development environment to start using Windows Server AppFabric quickly. The book then moves on to provide comprehensive coverage of the most important capabilities provided by Windows Server AppFabric, diving right in to hands-on topics such as deploying WCF and WF applications to Windows Server AppFabric and leveraging the distributed caching, scalable hosting, persistence, monitoring and management capabilities that Windows Server AppFabric has to offer, with recipes covering a full spectrum of complexity from simple to intermediate and advanced.
Table of Contents (16 chapters)
Microsoft Windows Server AppFabric Cookbook
Credits
Foreword
About the Authors
About the Reviewers
www.PacktPub.com
Preface

Setting up read through — write behind


Windows Server AppFabric version 1.0 only supported "cache-aside" programming pattern. As we have seen in Chapter 2, Getting Started with AppFabric Caching (under the recipe called Programming AppFabric Cache Client), with a cache-aside pattern, developers are responsible for doing custom implementations to ensure cache item availability as well as backend consistency in the face of cache updates.

The good news is that with version 1.1, Windows Server AppFabric has added support for Read Through as well as the Write Behind scenarios:

  • Read Through: If the client calls a Get on DataCache object with the key that does not exist in the cache, it gets a null reference. In a cache-aside pattern it is the responsibility of the calling client to then load the item in the cache so that it is available for the subsequent calls. However, with the new Read Through implementation for cache-miss scenarios the AppFabric cache transparently loads the missing item...