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

Preface

Have you ever spent hours troubleshooting a network, only to realize the network addresses for your applications changed? Or perhaps you've had to deflect flying coffee mugs from irate project managers because it is taking weeks to update a firewall or load balancer. Maybe your engineering teams are struggling with end-to-end encryption between their services, reinventing the wheel with every project, or leaving security up to the fictitious perimeter surrounding the network. If these situations sound familiar, HashiCorp Consul just might be the answer for your woes!

Consul provides a platform-independent solution for service discovery, network automation, and secure service communications. This book walks through the foundation of the Consul architecture, explaining how the servers and clients operate. We'll build our own Consul system in Amazon Web Services, and secure the system against cowans and eavesdroppers. With an established cluster, we'll start deploying services into the system, and show how Consul discovers and monitors these services. Multiple methods of sharing service information will be discussed. However, the continuing focus is on how Consul utilizes this information to dynamically adjust network infrastructure and facilitate secure connections among the registered services. Finally, we'll do a quick walk-through of HCP Consul, a Software as a Service solution offered on HashiCorp Cloud Platform.