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 Platform 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 on a cloud-agnostic architecture
Get started with Hazelcast Platform.