Book Image

Getting Started with Hazelcast, Second Edition

By : Matthew Johns
Book Image

Getting Started with Hazelcast, Second Edition

By: Matthew Johns

Overview of this book

Table of Contents (19 chapters)
Getting Started with Hazelcast Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Stepping back from the cluster


To avoid this situation, we can separate our application from the data cluster through the use of a client driver that looks and appears very similar to a direct Hazelcast instance. However, in this case, the operations are performed and delegated to a wider cluster of real instances. This has the benefit of separating our application from the scaling of the Hazelcast cluster, allowing us to scale up our own application without having to scale everything together, thereby maximizing the utilization efficiency of the resources that we are running the application on. However, we can still scale up our data cluster by adding more nodes to avoid a bottleneck at this layer, either for increasing memory storage requirements or performance and computing necessities.

If we create a server-side vanilla instance to provide us with a cluster of nodes, we can connect out to/from a client.

public class VanillaInstanceExample {
  public static void main(String[] args) {
 ...