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

Programming AppFabric Cache Client


Windows Server AppFabric in Version 1 was built for cache-aside patterns, which implies that all the applications and services relying on AppFabric cache are responsible for loading data into the AppFabric Cache themselves. With v1.1, Windows Server AppFabric has added support for Read-Through and Write-Behind scenarios. There are more details on these caching patterns in Chapter 3, Windows Server AppFabric Caching – Advanced Use Cases

Note

Data can be loaded in cache if and only when it is needed by the calling client. This is called Lazy Loading. The data can also be loaded in the cache when the application starts. This is called Eager Loading. Both approaches have their pros and cons.

In this recipe we will go through some of the common use-cases of adding, retrieving, and updating data from the Windows Server AppFabric Cache.

Getting ready

We will need the AppFabric Cache to be available (verifiable via running the cache cmdlets as highlighted in the...