Autoscaling BrownField PSS microservices
In this section, we will examine how to enhance microservices developed in Chapter 5, Scaling Microservices with Spring Cloud, for autoscaling. We need a component to monitor certain performance metrics and trigger autoscaling. We will call this component the life cycle manager.
The service life cycle manager, or the application life cycle manager, is responsible for detecting scaling requirements and adjusting the number of instances accordingly. It is responsible for starting and shutting down instances dynamically.
In this section, we will take a look at a primitive autoscaling system to understand the basic concepts, which will be enhanced in later chapters.
The capabilities required for an autoscaling system
A typical autoscaling system has capabilities as shown in the following diagram:
The components involved in the autoscaling ecosystem in the context of microservices are explained as follows:
Microservices: These are sets of the up-and-running...