Book Image

Simplifying Service Management with Consul

By : Robert E. Jackson
Book Image

Simplifying Service Management with Consul

By: Robert E. Jackson

Overview of this book

Within the elastic and dynamic nature of cloud computing, efficient and accurate service discovery provides the cornerstone for all communications. HashiCorp Consul facilitates this service discovery efficiently and securely, independent of the operating environment. This book will help you build a solid understanding of both the concepts and applications of HashiCorp Consul. You'll begin by finding out what you can do with Consul, focusing on the conceptual views of configuration samples along with Terraform code to expedite lab environment and hands-on experimentation, which will enable you to apply Consul effectively in your everyday lives. As you advance, you'll learn how to set up your own Consul cluster and agents in a single datacenter or location and understand how Consul utilizes RAFT and GOSSIP protocols for communication. You'll also explore the practical applications of primary Consul use cases, including communication flows and configuration and code examples. With that knowledge, you'll extend Consul across datacenters to discuss the applicability of multiple regions, multiple clouds, and hybrid cloud environments. By the end of this Consul book, you will have the tools needed to create and operate your own Consul cluster and be able to facilitate your service discovery and communication.
Table of Contents (12 chapters)
1
Section 1: Consul Use Cases and Architecture
6
Section 2: Use Cases Deep Dive

Connecting clusters

To think that all of our services are going to reside within a single data center might have worked 20 years ago when I started writing this book (so it seems). The world has truly evolved to a continuously connected mobile environment, although some might argue that this was actually devolution. Regardless, the only way to really maintain the communications among our services in this world is to ensure that their availability and location can be discovered from multiple geographic areas. Whether I'm in Boston, Berlin, or Melbourne, the applications and services I've grown to rely on must be available! All that we have done within this chapter has led us to this point!

Throughout the book, we've been talking a lot about gossiping and pools, and we're going to continue that discussion. However, as you can imagine, the amount of data that we have communicated within a single Consul cluster can be quite extensive, especially as we onboard all...