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

Protecting the communication paths

Now, I'm not sure about you, but when I start reading documents about AES, TLS, GCM, and so on, my eyes start to gloss over. The plethora of acronyms help us chase squirrels in all directions, but that's not going to help us secure our Consul cluster. So, my goal is to explain what we need to do to secure our system communications with minimal acronyms. This reminds me of the time I had to write a paper in high school without using any of the forms of the verb to be. Thanks, Mr. Farley. It is important to remember that, currently, we're only going to focus on securing our clients and servers. Securing and encrypting traffic for our services will come later, so please be patient.

In the second chapter of this book, we learned about the two primary modes of communication among the Consul components: Remote Procedure Calls (RPC) and gossip. But wait – what about this Raft and consensus stuff we've read about? Well, all that...