Home » Tag Archives: Hazelcast

Tag Archives: Hazelcast

Hibernate Caching with HazelCast: Basic configuration

Previously we went through an introduction on JPA caching, the mechanisms and what hibernate offers. What comes next is a hibernate project using Hazelcast as a second level cache. We will use a basic spring boot project for this purpose with JPA. Spring boot uses hibernate as the default JPA provider. Our setup will be pretty close to the one ...

Read More »

Hibernate Caching With HazelCast: JPA caching basics

One of the greatest capabilities of HazelCast is the support for hibernate’s second level cache. JPA has two levels of cache. The first level cache caches an object’s state for the duration of a transaction. By querying the same object twice you have to get the object your retrieved the first time. However in case of complex queries which include ...

Read More »

Spring-Boot and Cache Abstraction with HazelCast

spring-interview-questions-answers

Previously we got started with Spring Cache abstraction using the default Cache Manager that spring provides. Although this approach might suit our needs for simple applications, in case of complex problems we need to use different tools with more capabilities. Hazelcast is one of them. Hazelcast is hands down a great caching tool when it comes to a JVM based ...

Read More »

Configure hazelcast with EC2

Hazelcast is hands down a great caching tool when it comes to a JVM based application. If you use Amazon Web Services Hazelcast integrates wonderfully. First task is to create a policy responsible for describing instances. We shall name this policy as describe-instances-policy. { "Version": "2012-10-17", "Statement": [ { "Sid": "Stmt1467219263000", "Effect": "Allow", "Action": [ "ec2:DescribeInstances" ], "Resource": [ "*" ] ...

Read More »

Docker Service Discovery On Microsoft Azure – Docker Java App Load Balanced By Nginx Or Apache HTTP, Mongo Replica Set And Hazelcast Cluster

This project covers three service discovery use cases in Docker application deployments — including Nginx & Apache HTTP Server load balancing, Mongo Replica Set and Hazelcast Cluster. The service discovery framework in DCHQ provides event-driven life-cycle stages that executes custom scripts to re-configure application components. This is critical when scaling out clusters for which a load balancer may need to ...

Read More »

Beginner’s Guide to Hazelcast Part 7

This is a continuation of a series explaining how to use Hazelcast.  If one has not read the other six posts, please go to the Table Of Contents and read the other posts. A Different Breed of Map Hazelcast’s MultiMap breaks the normal mold of using java.util.Collection interfaces that have been used in former posts.  In fact, the concept of ...

Read More »

Beginner’s Guide to Hazelcast Part 6

This is the sixth post in a series of posts about Hazelcast.  If one has not read the last five, please go to the table of contents post I have created to catch up. Native Clients After the last post I decided that I am going to go native.  Yep, I am going to demonstrate Hazelcast’s own Java client.  Java ...

Read More »

The Beginner’s Guide to Hazelcast Part 5

This is a continuation of a series of posts I have written about Hazelcast.  I highly suggest you read the other ones: Part 1, Part 2, Part 3 and Part 4. Things That Makes One Go “Huh?” This post will have no Hazelcast specific code in it. Let me repeat that. This post will have no Hazelcast specific code in ...

Read More »

Hazelcast member discovery using Curator and ZooKeeper

At one project I was setting up Hazelcast cluster in a private cloud. Within cluster all nodes must see each other, so during bootstrapping Hazelcast will try to locate other cluster members. There is no server and all nodes are made equal. There are couple techniques of discovering members implemented in Hazelcast; unfortunately it wasn’t AWS so we couldn’t use ...

Read More »

Beginner’s Guide to Hazelcast Part 3

This is a continuation of a series of posts on how to use Hazelcast from a beginner’s point of view.  If you haven’t read the last two, I encourage reading them: Beginner’s Guide to Hazelcast Part 1 Beginner’s Guide to Hazelcast Part 2           The Primitives are Coming During my last post I mentioned to use ...

Read More »

Want to take your Java skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • Spring Interview QnA
  • Multithreading & Concurrency QnA
  • JPA Minibook
  • JVM Troubleshooting Guide
  • Advanced Java
  • Java Interview QnA
  • Java Design Patterns