Chapter Conclusion

In this lesson, we'll conclude this chapter with a quick summary of what we have learned.

We'll cover the following

Summary #

Kubernetes solves the challenges of synchronous microservices as follows:

  • DNS offers service discovery. Thanks to DNS, microservices can be used transparently in any programming language. However, DNS only provides the IP address, so the port must be known. No code is required to register the services. When you start the service, a DNS record is created automatically.

  • Load balancing is ensured by Kubernetes by distributing the traffic for the IP address of the Kubernetes service to the individual pods on the IP level. This is transparent for callers and for the called microservice.

  • Routing is covered by Kubernetes via the load balancer or node ports of the services. This is also transparent for the microservices.

  • Resilience is offered by Kubernetes via the restarting of containers and load balancing.

    • In addition, a library like Hystrix can be useful for implementing timeouts or circuit breakers.
    • A proxy like Envoy can be an alternative to Hystrix. Envoy is also part of Istio and implements resilience for Istio.

Get hands-on with 1400+ tech skills courses.