About This Title

Pages: 225
Published: December 2020
ISBN: 9781680507607
Edition: 1
In Beta

Skill Level Meter

Distributed Services with Go

Your Guide to Reliable, Scalable, and Maintainable Systems

by Travis Jeffery

This is the book for Gophers who want to learn how to build distributed systems. You know the basics of Go and are eager to put your knowledge to work. Build distributed services that are highly available, resilient, and scalable. This book is just what you need to apply Go to real-world situations. Level up your Go skills today.

eBook Formats:

  • PDF for desktop/tablets

  • epub for Apple Books, e-readers

  • mobi for Kindle readers

Get all eBook formats here for $24.95 (USD)

Add to Cart we accept visa, mastercard, amex, discover, paypal

This book is in Beta, final version expected Dec 2020

Beta Books: What do I get?


Take your Go skills to the next level by learning how to design, develop, and deploy a distributed service. Start from the bare essentials of storage handling, work your way through networking a client and server, turn that single-node application into a distributed system with service discovery and consensus, and then deploy your service to the cloud. All this will make coding in your day job or side projects easier, faster, and more fun.

Lay out your applications and libraries to be modular and easy to maintain. Build networked, secure clients and servers with gRPC. Gain insights into your systems and debug issues with observable services instrumented with metrics, logs, and traces. Operate your own Certificate Authority to authenticate internal web services with TLS. Automatically handle when nodes are added or removed to your cluster with service discovery. Coordinate distributed systems with replicated state machines powered by the Raft consensus algorithm. Lay out your applications and libraries to be modular and easy to maintain. Write CLIs to configure and run your applications. Run your distributed system locally and deploy to the cloud with Kubernetes. Test and benchmark your applications to ensure they’re correct and fast.

Dive into writing Go and join the hundreds of thousands who are using it to build software for the real world.

What You Need

Go 1.13+ and Kubernetes 1.16+

Resources

Releases:

  • B4.0 2020/09/23
  • B3.0 2020/08/12
  • B2.0 2020/06/16
  • B1.0 2020/03/23

Contents & Extracts

Note: Contents and extracts of beta books will change as the book is developed.

  • Introduction
  • Get Started
    • Let’s Go
      • How JSON over HTTP Services Fits into Distributed Systems
      • Set Up the Project
      • Build a Commit Log Prototype
      • Build a JSON over HTTP Server
      • Run Your Server
      • Test Your API
      • What You Learned
    • Structure Data with Protocol Buffers. excerpt
      • Why Use Protocol Buffers?
      • Install the Protocol Buffer Compiler
      • Define Your Domain Types as Protocol Buffers
      • Compile Protocol Buffers
      • Work with the Generated Code
      • What You Learned
    • Write a Log Package
      • The Log Is a Powerful Tool
      • How Logs Work
      • Build a Log
      • What You Learned
  • Network
    • Serve Requests with gRPC. excerpt
      • What Is gRPC?
      • Goals When Building a Service
      • Define a gRPC Service
      • Compile with the gRPC Plugin
      • Implement a gRPC Server
      • Register Your Server
      • Test a gRPC Server and Client
      • What You Learned
    • Secure Your Services
      • Secure Services in Three Steps
      • Authenticate the Server with TLS
      • Authenticate the Client with Mutual TLS Authentication
      • Authorize with Access Control Lists
      • What You Learned
  • Distribute
    • Server-to-Server Service Discovery
      • Why Use Service Discovery? excerpt
      • Embed Service Discovery
      • Discover Services with Serf
      • Request Discovered Services and Replicate Logs
      • Test Discovery and the Service End-to-End
      • What You Learned
    • Coordinate Your Services with Consensus
      • What Is Raft and How Does It Work?
      • Implement Raft in Our Service
      • Multiplex to Run Multiple Services on One Port
      • What You Learned
    • Discover Servers and Load Balance From the Client
      • Three Load-Balancing Strategies
      • Load Balance on the Client in gRPC
      • Make Servers Discoverable
      • Resolve the Servers
      • Route and Balance Requests with Pickers
      • Test Discovery and Balancing End-to-End
      • What You Learned
  • Deploy
    • Observe Your Systems
    • Deploy Applications with Kubernetes Locally
      • What Is Kubernetes?
      • Install kubectl
      • Use Kind for Local Development and Continuous Integration
      • Write an Agent Command-Line Interface
      • Build Your Docker Image
      • Configure and Deploy Your Service With Helm
      • What You Learned
    • Deploy Applications with Kubernetes to the Cloud
      • Create a Google Kubernetes Engine Cluster
      • Create Custom Controllers with Metacontroller
      • Deploy to the Internet
      • What You Learned

Author

Travis Jeffery is a Canadian software maker and writer. He’s created software since 2001; hacked on open source projects like Jocko, Timecop, Mocha; and built several startups from the ground up, including Segment and Confluent.

eBook Formats:

  • PDF for desktop/tablets

  • epub for Apple Books, e-readers

  • mobi for Kindle readers

Get all eBook formats here for $24.95 (USD)

Add to Cart we accept visa, mastercard, amex, discover, paypal

This book is in Beta, final version expected Dec 2020

Beta Books: What do I get?

Related Titles:

Skill Level Meter

About This Title

Pages: 225
Published: December 2020
ISBN: 9781680507607
Edition: 1
In Beta