官术网_书友最值得收藏!

Introduction

In distributed applications, object caching offers significant performance gains compared to direct database access. Historically, we have come to believe that performance and scalability are like two faces of the same coin; one can either get the system to perform better or have it optimized for scalability.

The use of distributed in-memory caching not only helps with performance, but also with scalability. If you cannot scale up then you have to scale out and that is exactly how distributed in-memory caching works for Windows Server AppFabric.

Note

Scale out, or the horizontal scaling, refers to the scalability approach that allows adding of new (compute and/or storage) nodes to the deployment to handle additional load; whereas with the traditional scale up approach to handle additional workload we add more memory and compute power to the existing compute node (server).

In Windows Server AppFabric Cache, the data is kept in-memory, but instead of limiting it to one server node, it has the capability of scaling out to hundreds of nodes, on demand, seamlessly.

This distributed in-memory architecture offers a possibility of dynamically scalable and highly available cache. This cache can then be used for storing large amounts of data in memory and as a result, applications and services perform faster and become more reliable.

Windows Server AppFabric uses a notion of a Cache Cluster to represent a logical collection of a number of Cache Hosts (nodes). Cache is transparently distributed across the hosts. Each host may contain zero or more named cache regions. The good thing is that the Cache Client is abstracted from the details of distributed architecture. The following diagram is a schematic representation of a Cache Cluster in Windows Server AppFabric:

Introduction

In this chapter we will go through some of the most common caching-related scenarios for Windows Server AppFabric Cache.

We will start with initializing Windows Server AppFabric Cache using code.

主站蜘蛛池模板: 古蔺县| 五原县| 陆河县| 大关县| 太康县| 垦利县| 南召县| 益阳市| 新宾| 芦山县| 阳春市| 库伦旗| 溧阳市| 石阡县| 高台县| 溧水县| 荔波县| 汾阳市| 南乐县| 葵青区| 柳河县| 日照市| 精河县| 丽江市| 临潭县| 通辽市| 介休市| 常熟市| 集安市| 石台县| 怀来县| 伊吾县| 玛纳斯县| 红桥区| 赤峰市| 河曲县| 汽车| 昌都县| 永丰县| 南通市| 合江县|