If your business is heavily dependent on data, especially if it operates a high-traffic system, even the slightest chance of data loss can be alarming. In these scenarios, the idea of disaster recovery may seem overwhelming especially when dealing with transient data which is inherently volatile. Transient data can include ASP.NET sessions, arbitrary application data, or aggregated data. Moreover, if you lose your cache data, it must be reloaded from the database, which can negatively impact performance—something no one wants.
Key Takeaways:
Peer-to-Peer Resilience: NCache eliminates single points of failure (SPOF) through a decentralized architecture, ensuring the cluster remains functional even during node failures.
Redundant Caching Topologies: High availability is guaranteed via multiple data distribution models, specifically Mirrored, Replicated, and Partition-Replica topologies.
Self-Healing Clusters: The system uses a TCP-based dynamic clustering protocol that automatically detects node membership changes and redistributes data without downtime.
Multi-Site Disaster Recovery: Asynchronous WAN Replication maintains data synchronization between primary and secondary data centers to protect against total site outages.
Fortunately, NCache was designed with the understanding that peak load failures, system outages, and other issues are inevitable when dealing with a distributed caching solution. As such, it strives to ensure high cache data availability whenever possible.
Core Reliability Features: NCache achieves 100% uptime through a peer-to-peer self-healing architecture, multiple redundant topologies, and asynchronous WAN replication for cross-region failover.
Therefore, plan your disaster recovery with NCache as soon as possible and let us guide you through the process. After conducting a thorough risk assessment of your caching tier (e.g., identifying sensitive data and specifying passive sites if you are considering data centers), you should identify potential recovery strategies. Then, run drills after implementation to ensure your strategy works. Let’s explore a few of these options below.
How does NCache help with this?
NCache offers several contingencies for disaster recovery, with the following being the most essential:
How NCache Ensures High Availability (HA) in Distributed Clusters
As an in-memory distributed data caching solution, NCache provides an architecture that guarantees high data availability, even during of high traffic or system downtime. Its peer-to-peer architecture avoids the issues associated with a single point of failure.
NCache offers various caching topologies to ensure high availability, including:
- Mirrored Topology: A two nodes cluster, where one node is active and mirrored on the passive node.
- Replicated Topology: A cluster where each node has the same data replicated on it.
- Partition-Replica Topology: A cluster divided into partitions, each replicated on a different server. The replicas are passive, meaning clients cannot connect to them until the active node is deemed dead or permanently unavailable.
The following table summarizes how each NCache topology handles high availability based on your specific use case:
| Topology | Best For | Availability Mechanism |
|---|---|---|
| Mirrored | Small clusters | 1 Active, 1 Passive replica |
| Replicated | Read-intensive apps | Full data copy on every node |
| Partition-Replica | Scalable, high-traffic | Active partitions with passive replicas |
Any of these topologies could be ideal for high availability based on your application requirements. For instance, in the mirrored topology, if the active node fails, you have a complete replica available from the formerly passive node. Similarly, in the Partition-Replica topology, if the active node is considered dead and loses a partition, its replica will be made available to start serving data. In the replicated topology, every node has a copy of the entire cache, guaranteeing high availability.
Moreover, NCache’s peer-to-peer architecture enables self-healing dynamic clustering. This TCP-based dynamic cluster provides 100% uptime without interrupting the cluster. Additionally, NCache’s load-balancing capabilities efficiently distribute traffic, preventing server overloads from occurring.
Ensuring Data Durability with Live Data Persistence
For added peace of mind, persistence involves writing data to a specific location for durable storage and backup. The mechanism for storing items within the persistence store is asynchronous and occurs via a persistence queue. Upon cache restart, the cache is automatically repopulated, requiring no user configuration (assuming the persistence store is already set up). Every node in the cluster can access the centralized store to repopulate any missing data.
Multi-Region Disaster Recovery (DR) via WAN Replication
For highly transactional applications, disaster recovery is often managed by having one or more data centers. Typically, this involves an active and a passive data center located in a different geographical area.
NCache provides WAN replication via a bridge. In an active-passive configuration, you deploy NCache on both the active and passive sites. The active site uses a bridge topology to send all updates from its cache to the bridge, which then asynchronously transmits them to the passive site within milliseconds (minimal latency based on the distance between data centers).

Figure 1: NCache Multi-Site Disaster Recovery via Asynchronous WAN Replication.
Asynchronous replication means that applications and caches at each site do not wait for their data to replicate across data centers. Instead updates are queued at the bridge, which is a two-node cluster. If you have three or more data centers, the bridge applies incoming updates to multiple active sites in parallel and performs bulk updates, combining multiple data items into a single request to reduce network trips.
If the active site goes down due to a disaster, the bridge and application will also go down, but the passive site will take over as the new active site, handling all application traffic. All data would already be replicated from the original active site to the original passive site, with no disruption to users. Once the original active site is restored, it connects to the new active site (the original passive site) and synchronizes completely. After synchronization, both data centers have an active-active configuration, and traffic can be offloaded to the original active site. The status of the active-active site can then be reverted to passive on the bridge at runtime.
Backup and Restore
If a specific version of your data is critical, you can use NCache’s Import/Export Cache Data feature. You can use the Export-CacheData PowerShell cmdlet to export the cache data. Once exported, you can retrieve all items in the existing backup of the cache along with the related Lucene documents using the Import-CacheData cmdlet.
Conclusion
In conclusion, NCache offers a suite of powerful tools to ensure high availability, including versatile topologies, advanced architecture, and effective WAN replication features that mitigate the risk of data loss during disasters. Additionally, its support for two types of backups further safeguards your data. Download NCache today to implement a robust caching solution that will support you through both, prosperous and challenging times.
Frequently Asked Questions (FAQ)
Q: Why is high availability critical for transient data like ASP.NET sessions?
A: Transient data is inherently volatile. In high-traffic systems, losing this data (e.g., user sessions or shopping carts) forces a reload from the database, which creates a performance bottleneck and negatively impacts user experience. NCache prevents this by keeping a live, redundant copy in-memory.
Q: What happens to the Partition-Replica topology if an active node fails?
A: If an active node is deemed dead, its corresponding passive replica is immediately made available to start serving data. This ensures that the specific partition of data lost by the failed node remains accessible to the application without disruption.
Q: How does NCache persistence differ from standard backups?
A: Unlike manual backups, NCache’s Live Data Persistence is an asynchronous mechanism that writes data to a durable store via a persistence queue. If a cache restarts, it automatically repopulates itself from this store without requiring manual user intervention or configuration.
Q: What is the benefit of an Active-Passive WAN configuration?
A: In this setup, a primary site handles live traffic while asynchronously replicating updates to a geographically separate passive site via a Bridge. If the primary site suffers a total disaster, the passive site which is already synchronized takes over as the new active site to handle all application traffic.
Q: How does NCache handle data synchronization once a failed site is restored?
A: Once the original active site is recovered, it connects to the current active site (the former passive site) and undergoes a complete synchronization. After this process, both data centers reach an “active-active” state, allowing traffic to be offloaded back to the original site.






