Book Image

Getting Started with Hazelcast

By : Matthew Johns
Book Image

Getting Started with Hazelcast

By: Matthew Johns

Overview of this book

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

Preface

Hazelcast is an innovative new approach to data, in terms of storage, processing, and distribution; it provides an accessible solution to the age-old problem of application and data scalability. Getting Started with Hazelcast introduces this great open source technology in a step-by-step, easy-to-follow manner, from the why to the how to wow!

What this book covers

Chapter 1, What is Hazelcast?, helps us to get introduced with the technology, its place in an application's stack, and how it has evolved from traditional approaches to data.

Chapter 2, Getting Off the Ground, helps us start coding and get acquainted with the standard distributed data store collections on offer.

Chapter 3, Going Concurrent, helps us expand to look at more distributed and concurrent capabilities we can bring into our applications.

Chapter 4, Divide and Conquer, helps us look at how data is split up and split across many nodes to provide both performance and resilience.

Chapter 5, Listen Out, helps us discover that we can register to receive notifications from the cluster to enable our application to be aware of the goings on.

Chapter 6, Spreading the Load, helps us move beyond the data storage, and we investigate the distributed execution service and how Hazelcast is more than just a database.

Chapter 7, Typical Deployments, helps us explore the various ways we can use or install Hazelcast into our application or infrastructure, looking at the architectural decisions, reasons, and trade-offs behind each one.

Chapter 8, From the Outside Looking In, helps us look at popular alternative access we have to our data rather than using the provided drivers for integrating with a Hazelcast cluster.

Chapter 9, Going Global, helps us explode onto the world stage using the public cloud infrastructure and asynchronous remote replication to take our data all around the globe.

Chapter 10, Playing Well with Others, helps us bring the technology together with popular companion frameworks to see how we might start to bring the technology to work with legacy applications.

Appendix, Configuration Summary, helps us overview of the configurations we have used throughout the book.

What you need for this book

Hazelcast is a Java-based technology so you will need a Java development environment (ideally Java 6 or newer) and use of a Java source code editor, preferably an IDE.

Who this book is for

If you are software architect or Java developer looking to make your applications more scalable or looking to move into the cloud, Hazelcast is a technology you should strongly consider. This book seeks to provide an easy introduction to this innovative data centric framework and into its new way of thinking.

Conventions

In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

Code words in text are shown as follows: "A GET method to retrieve an entry, returning a 200 OK response for keys that hold a value and 204 No Content for keys that do not."

A block of code is set as follows:

$ pyton memcache_example.py
{'country': 'GB', 'name': 'London', 'population': 8174100}

$ php -f memcache_example.php
array (
  'name' => 'London',
  'country' => 'GB',
  'population' => 8174100,
)

Any command-line input or output is written as follows:

$ curl -v -X POST -H "Content-Type: text/plain" -d "bar" \
http://127.0.0.1:5701/hazelcast/rest/maps/test/foo

< HTTP/1.1 204 No Content
< Content-Length: 0

New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "Now, just go the File menu and click on New".

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or may have disliked. Reader feedback is important for us to develop titles that you really get the most out of.

To send us general feedback, simply send an e-mail to , and mention the book title through the subject of your message.

If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide on www.packtpub.com/authors.

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Downloading the example code

You can download the example code files for all Packt books you have purchased from your account at http://www.packtpub.com. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files e-mailed directly to you.

Errata

Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you would report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/support, selecting your book, clicking on the errata submission form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded to our website, or added to any list of existing errata, under the Errata section of that title.

Piracy

Piracy of copyright material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works, in any form, on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.

Please contact us at with a link to the suspected pirated material.

We appreciate your help in protecting our authors, and our ability to bring you valuable content.

Questions

You can contact us at if you are having a problem with any aspect of the book, and we will do our best to address it.

Trademarks

  • Hazelcast is a trademark of Hazelcast Inc.

  • Amazon AWS and EC2 are registered trademarks of Amazon Web Services Inc and/or its affiliates.

  • Java is a registered trademark of Oracle Inc and/or its affiliates.

  • Puppet is a registered trademark of Puppet Labs Inc.

  • Chef is a registered trademark of OpsCode Inc.