• Facebook
  • Twitter
  • Youtube
  • LinedIn
  • RSS
  • Docs
  • Comparisons
  • Blogs
  • Download
  • Contact Us
Download
Show / Hide Table of Contents

Separate Cache Host Process

Previously, the NCache Service and all cache instances were confined within one single process. This meant that if the process crashed, the service along with the caches and their resource information (memory, addresses, ports) were lost.

NCache has now provided more reliability by dedicating a separate process to the service and a devoted process to each cache host.

Client Communication with the Cache

The initial communication of the client with a cache host is a 2-hop communication:

  • It first interacts with the service, which connects the client to the cache host using the port forwarding mechanism.

  • It then communicates with the cache using port forwarding. All future interactions for the client are made directly with the cache.

When a cache is started in its own separate process, it is assigned a Management Port on which the service will communicate with it. This port is dynamically generated from a range (default 8300 – 8400, configurable in service.exe.config).

Note

Note that in case of the Partition-Replica topology, two ports will be assigned.

Once the port has been forwarded, the client will send all cache requests to the cache, like adding items to the cache, or fetching or removing them from the cache.

In case one of the cache host processes stops, the ports being used by that cache for communication are added back to the pool of available ports. For example, if a Partition-Replica node was using ports 8301 and 8302 and the process terminates, the ports will become available for use by any other cache. Now when a process starts for a new cache, port 8301 can be reused for this cache.

Formerly, once a port was assigned to the cache, it was considered as utilized - regardless of the cache state. This meant the port range was narrowed down involuntarily.

See Also

Graceful Node Down
Self Healing Dynamic Clustering
IP Binding with Multiple NICs
Split Brain

Contact Us

PHONE

+1 214-619-2601   (US)

+44 20 7993 8327   (UK)

 
EMAIL

sales@alachisoft.com

support@alachisoft.com

NCache
  • Edition Comparison
  • NCache Architecture
  • Benchmarks
Download
Pricing
Try Playground

Deployments
  • Cloud (SaaS & Software)
  • On-Premises
  • Kubernetes
  • Docker
Technical Use Cases
  • ASP.NET Sessions
  • ASP.NET Core Sessions
  • Pub/Sub Messaging
  • Real-Time ASP.NET SignalR
  • Internet of Things (IoT)
  • NoSQL Database
  • Stream Processing
  • Microservices
Resources
  • Magazine Articles
  • Third-Party Articles
  • Articles
  • Videos
  • Whitepapers
  • Shows
  • Talks
  • Blogs
  • Docs
Customer Case Studies
  • Testimonials
  • Customers
Support
  • Schedule a Demo
  • Forum (Google Groups)
  • Tips
Company
  • Leadership
  • Partners
  • News
  • Events
  • Careers
Contact Us

  • EnglishChinese (Simplified)FrenchGermanItalianJapaneseKoreanPortugueseSpanish

  • Contact Us
  •  
  • Sitemap
  •  
  • Terms of Use
  •  
  • Privacy Policy
© Copyright Alachisoft 2002 - . All rights reserved. NCache is a registered trademark of Diyatech Corp.
Back to top