Replace the cachemanager of the cache application block of Enterprise Library 4.0

Source: Internet
Author: User

Cache is used to improve the applicationProgramCommon performance technologies are implemented by copying common data from slow data sources to faster data sources. For data-driven applications, this technology usually needs to cache the data retrieved from the database or web service to the memory of the local computer.

Caching is the easiest way to implement caching technology when the cache is specific to each application, but if multiple applications require one public cache, the problem becomes more challenging. For example, a large website usually uses a server farm, which contains multiple computers that provide the same content. When each request arrives, it is allocated to one of the computers in the field. However, if the information is cached in the memory of one computer on the site, the cache on other computers will not be able to access it, thus reducing the cache efficiency. One solution to this problem is to move the cache to a centralized data storage (such as a database), or designate one of the servers in the field as a cache server, which is only used to store the unique copy of the cache. There is a problem with using centralized cache storage, that is, they introduce single point of failure and will become a bottleneck.

To overcome the limitations of single and centralized cache storage, consider usingAlachisoftDevelopedNcache 3.2. Ncache is a cluster cache framework that allows you to seamlessly manage caches distributed across multiple computers. The Administrator first uses the ncachemanager tool to specify the cluster topology and cache policy. The administrator can specify multiple settings, including storing the cache in the memory, disk, eviction policy, and Maximum Cache size. These settings and topology can be modified at runtime. In addition, ncachemanager provides a series of statistics that can be used not only to monitor the running status of the cache, but also to fine-tune the cache settings for optimal performance indicators.

When defining a cache cluster, you can specify whether to copy the cache in the cluster or partition it. The cached content of the replicated cache cluster is the same as that on each machine in the cluster. Because there is no single point of failure, the replication cache can improve the reliability. However, any updates to the cluster must be copied to all clusters. Therefore, the replication cluster is ideal for read-based caches or small clusters. On the other hand, the partition cache divides the cache content among various computers in the cluster, and achieves better performance for updates and large clusters.

Ncache also provides providers integrated into the Microsoft cache application block (CAB.AlachisoftThe company released an ncache Express version which is free of charge but has the following restrictions:

    • Supports two server environments
    • Client Cache, whether local or from another server
    • Cache replication topology (no image, partition, partition copy, or client cache)
    • The Maximum Cache size is 500 mb.
    • Distributed ASP. NET session state cache is not supported
    • Distributed ASP. NET output cache is not supported
    • Only 32-bit (No 64-bit version)
    • Support 1.1/2.0/3.0/3.5 clients

Ncache Enterprise Edition features:

Cache Topology

    • Local cache.
    • Copy cache.
    • Partition cache (automatic partitioning ).
    • Partition cache (tightly positioned ).
    • Client Cache client cache.
    • Local. Net client (inproc & outproc ).
    • Local Java client (outproc ).
    • Remote. Net & Java client.
    • Partitioned cache with replicas copy partition cache.

Dynamic Clustering

    • Add or delete nodes at runtime.
    • Event Notification when the string changes.

ASP. NET Session Clustering

    • Httpmodule Based on. NET 1.1 (not changedCode).
    • Session store provider Based on. NET 2.0 (no code changed ).

Third-party Integration

    • Nhib1_level-2 Cache provider.
    • Caching Application Block (CAB ).
    • Tierdeveloper.

Data expiration

    • Absolute expiration time.
    • The idle time expires.

Cache dependency

    • Keyword-based dependency.
    • File-based dependency.
    • Dependencies Based on Multiple cache keywords.

Cache and Database Synchronization

    • SQL Server 2005-based sqldependency.
    • The voting-based dbdependency applies to SQL 2000, Oracle & oledb.

Clustered-wide Event Notification

    • Update and delete events with the selected keywords.
    • Insert, update, and delete events with any keywords.
    • Custom Event Notifications.

Object Query Language (oql)

    • Oql is applicable to attribute-based queries.
    • Create an Attribute Index for the query.

Reclaim

    • Fixed and variable-size cache.
    • Least recently used (LRU ).
    • Least frequently used (LFU ).
    • FIFO of priority.

Storage Options

    • . Net heap.
    • Memory ing file.
    • Major cache and overflow cache.

Ncache Manager

    • Remote graphical cluster configuration.
    • Remote cluster monitor.
    • Inproc cache instance monitor.

Miscellaneous

    • Continuous reading, writing, and delayed writing.
    • Asynchronous operations (ADD, insert, delete ).
    • Compact serialization.
    • A large number of operations (ADD, insert, delete, and retrieve data ).
    • Data Group.
    • Multiple cache connections.
    • The 64-bit version.
    • Security.

See: http://www.alachisoft.com/ncache/index.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.