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

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. This book introduces this great open source technology in a step-by-step, easy-to-follow manner, from the why to the how and the wow.

What this book covers

Chapter 1, What is Hazelcast?, introduces 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, looks at more distributed and concurrent capabilities that we can bring into our applications.

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

Chapter 5, Listening Out, discusses how we can register to receive notifications from the cluster in order to enable our application to be aware of what's going on.

Chapter 6, Spreading the Load, moves beyond data storage and investigates the distributed execution service and how Hazelcast is more than just a database.

Chapter 7, Gathering Results, looks at MapReduce for analyzing and discovering hidden values within our raw data and how it searches and aggregates data.

Chapter 8, Typical Deployments, explores the various ways in which we can use or install Hazelcast into our application or infrastructure, looking at the architectural decisions, reasons, and trade-offs behind each.

Chapter 9, From the Outside Looking In, rather than the use of the provided drivers for integrating with a Hazelcast cluster, looks at the popular alternative access that we have to our data.

Chapter 10, Going Global, discusses how we can explode onto the world stage by using the public cloud infrastructure and asynchronous remote replication to take our data all around the globe.

Chapter 11, Playing Well with Others, brings 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, provides an overview of the configurations that 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 (minimum Java 6; ideally, Java 8) and the use of a Java source code editor, preferably IDE.

Additionally, the example code bundle uses Apache Maven for dependency management for your convenience.

Who this book is for

This book is a great introduction for Java developers, software architects, or DevOps looking to enable scalable and agile data within their applications. Providing in-memory object storage, cluster-wide states and messaging, or even scalable task execution, Hazelcast helps to solve a number of issues that have troubled technologists for years.

Conventions

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

The code words in text are shown as follows:

"We have created our City class to implement Serializable."

A block of code is set as follows:

public class SimpleMapExample {
  public static void main(String[] args) {
    HazelcastInstance hz = Hazelcast.newHazelcastInstance();
  }
}

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

$ java -cp hazelcast-3.5.jar com.hazelcast.console.ConsoleApp

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 disliked. Reader feedback is important for us as it helps us develop titles that you will really get the most out of.

To send us general feedback, simply e-mail and mention the book's title in 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 at 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 from your account at http://www.packtpub.com for all the Packt Publishing books you have purchased. 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 could 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/submit-errata, 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.

To view the previously submitted errata, go to https://www.packtpub.com/books/content/support and enter the name of the book in the search field. The required information will appear under the Errata section.

Piracy

Piracy of copyrighted 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

If you have a problem with any aspect of this book, you can contact us at , and we will do our best to address the problem.

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.

All other trademarks are the property of their respective owners.