Cloud-Native, Kubernetes-Based Microservices

Set up a Hazelcast cluster in Kubernetes, and make use of Hazelcast storage and messaging capabilities in your microservices architectures.

Hazelcast Loves Kubernetes

Hazelcast has first-class support for Kubernetes. You can scale up and scale down Hazelcast clusters without data loss. There’s also the option to automatically scale a Hazelcast cluster depending on metrics triggers. These metric triggers can be any system information from Hazelcast itself or from the Kubernetes environment.

Hazelcast members form a cluster by using the Kubernetes Discovery Plugin.

There are some excellent blog posts to get you going with Hazelcast running on Kubernetes:

If you want to work with more advanced features such as automatic scaling of the Hazelcast cluster, read this blog post by the dev lead of the integrations team on the Hazelcast project, Mesut Celik: Hazelcast Autoscaling with Horizontal Pod Autoscaler (HPA).

All of the Kubernetes work makes use of the Hazelcast Docker images which can be found on the Docker Hub.

Hazelcast as a Platform for Microservices

Hazelcast can be applied to a number of use cases for your microservices. It can act as an entire hosting platform, making use of distributed locks, semaphores, and CountDownLatches to provide high availability and coordination. Your microservices could run as clients to the cluster or in an embedded model.

You could use CRDT Counters or Flake IDs. You could also use data structures such as Maps, Sets , and Lists using a database per service pattern or a shared datastore pattern.

In this webinar from Lucas Beeler and Dale Kim, you find can learn how to use Hazelcast as a cornerstone of a next-generation microservices architecture.

Rafal Leszko talks about using Hazelcast caching, sidecars, and microservices in this interesting blog post.

Find out how to use Hazelcast with Spring Boot and microservices in this white paper.

Hazelcast is Cloud-Native

Hazelcast clusters can be run pretty much anywhere, including in all major clouds such as AWS, Azure, and GCP. Hazelcast clusters can be formed using special discovery services. You can find all of these on the Hazelcast Hub:

The Hazelcast Reference Manual provides more information on each of these discovery mechanisms.

Finally, give Hazelcast Viridian services a spin; it’s an easy way to start trying out Hazelcast features without having to create your own clusters.

The speed of in-memory, the convenience and scalability of the cloud

Get started in the cloud with Hazelcast Viridian services.