Caching Spring Boot Microservices with Hazelcast in Kubernetes

| 12 pages

In this guide, you will learn how to use Hazelcast distributed caching with Spring Boot and deploy to a local Kubernetes cluster. You will then create a Kubernetes Service which load balances between containers and verify that you can share data between microservices.

The microservice you will deploy is called hazelcast-spring. The hazelcast-spring microservice simply helps you put data and read it back. The Kubernetes Service will send the request to a different pod each time you initiate the request, and the data will be served by a shared Hazelcast cluster between hazelcast-spring pods.

You will use a local single-node Kubernetes cluster. However, you can deploy this application on any Kubernetes distributions.