Chapter 6. Autoscaling Microservices

Spring Cloud provides the support essential for the deployment of microservices at scale. In order to get the full power of a cloud-like environment, the microservices instances should also be capable of scaling out and shrinking automatically based on traffic patterns.

This chapter will detail out how to make microservices elastically grow and shrink by effectively using the actuator data collected from Spring Boot microservices to control the deployment topology by implementing a simple life cycle manager.

By the end of this chapter, you will learn about the following topics:

  • The basic concept of autoscaling and different approaches for autoscaling
  • The importance and capabilities of a life cycle manager in the context of microservices
  • Examining the custom life cycle manager to achieve autoscaling
  • Programmatically collecting statistics from the Spring Boot actuator and using it to control and shape incoming traffic

Reviewing the microservice capability model

This chapter will cover the Application Lifecycle Management capability in the microservices capability model discussed in Chapter 3, Applying Microservices Concepts, highlighted in the following diagram:

Reviewing the microservice capability model

We will see a basic version of the life cycle manager in this chapter, which will be enhanced in later chapters.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.118.144.69