DevOps, Java

Sharing the Load: Cache Clustering with Hazelcast

In my earlier blog on Caching: What, Why and How with Hazelcast we have discussed about the importance of software caching and how to implement it with Hazelcast. In this blog, we are going to discuss the importance of distributed caching and how to configure Hazelcast to be a full TCP/IP cluster. What is Cache clustering? A...

by Bijoy Paul
Tag: caching
25-Jan-2017

Java, Technology

Caching: What, Why and How with Hazelcast

In modern user facing and real-time applications, performance is the top concern with usually having data at its core. What if you were able to offload some work from the database and at the same time increase the performance and response times of your application? Most of the time data handling is done by relational databases which...

by Bijoy Paul
Tag: caching
26-Nov-2016

Java, Technology

#Hazelcast : Enhance throughput of Java apps performance by optimization of object deserialization and distributed query

Hazelcast is a popular solution for In-Memory Data Grid that is often used with Databases in order to improve performance of applications, to distribute data across servers, clusters and geographies and to manage very large data sets. Here's a quick reference to integrate hazelcast with grails  . Since Hazelcast is a distributed...

by Bijoy Paul
Tag: caching
01-Nov-2015

Grails

Compile GroovyScript at Runtime and allow caching of compiled source to avoid recompilation at Runtime using GroovyClassLoader

In some cases we need mechanism to provide compilation of groovy script at runtime. But at the same time we need to make sure it doesn't consume the JVM to perform compilation every time when we try to access that script. Hence to perform this we need to do the following task : Compile Groovy Script at Runtime. Cache the compiled...

by Tarun Pareek
Tag: caching
01-May-2015

Grails

Redis: Heavyweight Tags – an awesome use-case for caching with Redis

Redis plugin provides a beautiful way to cache the html tags. Using this plugin we can make big savings on the time taken to render the gsp tags. [java] <redis:memoize key="someKey" expire="3600" > //Some heavy weight tags rendering // Lots of db / network operations. </redis:memoize> ...

by Mohd Farid
Tag: caching
25-Sep-2012

Grails

Clearing Hibernate Query Cache in Grails

In one of the projects, we had used Query Caching to improve the performance. However, it also meant that the updates/inserts into a table did not get reflected immediately, i.e. something like: DomainClass.findByPropertyName("propertyName", [cache: true]) returned the same list as it was, before the insertion/updation took place....

by Vivek Krishna
Tag: caching
23-Jun-2010

Grails

Grails: caching using cron jobs

Hi, We needed to cache the result of a webservice. We were using grails 1.1.1 version and springcache plugin for caching. Unfortunately, current springcache version didn't work with grails 1.1.1. So we decided to cache the results using cron jobs, which will run in the background after every 1hr and store the results in a list, which...

by Amit Jain
Tag: caching
21-Aug-2009