Pricing
Chat
Contact

Hazelcast Tip: When to use near-cache?

September 06, 2012

What is near-cache?

In distributed architectures, obviously remote operations are more costly than local ones so you should try to increase the local ops/remote ops ratio in your system.

Near-cache is a feature that you can use to increase this ratio for your Hazelcast cluster.

Enabling near-cache, when an object is fetched from remote node, it is put to local cache, so subsequent requests are handled by local node retrieving from local cache.

Of course, this is not free. You gain performance but causes extra memory cost and breaks consistency proportional to lifespan you set for the cached records.

So when to use near cache?

If your read rate for a map is much higher than write rate, then near-cache makes sense.

More reading on caching with Hazelcast.

About the Author

About the Author

Enes Akar

Enes Akar

Co-founder & CTO, Hazelcast Cloud

Enes was one of the early developers of Hazelcast. He joined the company in 2011 with a passion for making distributed computing incredible simple. From 2012 to 2017, he headed the engineering team as VP of Engineering. Since 2017, he has led the development of Hazelcast Cloud, which is enterprise-grade Hazelcast software as a fully managed service in the cloud. Prior to joining Hazelcast, Enes worked in software development and software engineering at telecommunications companies, including Alcatel-Lucent and Ericsson. He holds a Bachelor of Science in Computer Engineering and an MBA from Bogazici University, Istanbul.

Latest Blogs

How to Secure Your Hazelcast Cloud Deployments

Auto-Scaling Clusters with Hazelcast Cloud

Announcing Hazelcast Cloud GA

Announcing Hazelcast Cloud GA

View all blogs by the author
Subscribe

Subscribe to the blog

Follow us on: