Skip to Main Content
Linkerd: Up and Running
book

Linkerd: Up and Running

by Jason Morgan, Flynn
April 2024
Intermediate to advanced content levelIntermediate to advanced
262 pages
6h 12m
English
O'Reilly Media, Inc.
Content preview from Linkerd: Up and Running

Chapter 11. Ensuring Reliability with Linkerd

As discussed from the very beginning, back in Chapter 1, microservices applications are utterly reliant on the network for all of their communications. Networks are slower and less reliable than in-process communication, which introduces new failure modes and presents new challenges to our applications.

For service mesh users, where the mesh mediates all your application traffic, the reliability benefit is that the mesh can make intelligent choices about what to do when things go wrong. In this chapter, we’ll talk about the mechanisms that Linkerd provides to mitigate the problems of unreliability in the network, helping to address the inherent instability of microservices applications.

Load Balancing

Load balancing might seem like an odd reliability feature to lead with, since many people think that Kubernetes already handles it. As we first discussed in Chapter 5, Kubernetes Services make a distinction between the IP address of the Service and the IP addresses of the Pods associated with the Service. When traffic is sent to the ClusterIP, it ends up being redirected to one of the endpoint IPs.

However, in Kubernetes, the built-in load balancing is limited to entire connections. Linkerd improves on this by using the proxy, which understands more about the protocol involved in the connection, to choose an endpoint for each request, as shown in Figure 11-1.

Figure 11-1. Service discovery in Linkerd

As you can see from Figure 11-1 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Istio: Up and Running

Istio: Up and Running

Lee Calcote, Zack Butcher
gRPC: Up and Running

gRPC: Up and Running

Kasun Indrasiri, Danesh Kuruppu
Istio in Action

Istio in Action

Rinor Maloku, Christian E. Posta
Rust in Action

Rust in Action

Tim McNamara

Publisher Resources

ISBN: 9781098142308Errata Page