Scaling and Performance Optimization Techniques
Chapter 9 introduced skills such as quantitative measurements to observe how a system connected via APIs behaves at runtime.
That chapter provides a good basis for this chapter on performance and scalability, two non-functional requirements that are strongly concerned with time, size, and other quantitative aspects of software systems and the data they process.
We will start by explaining what developers need to know about performance and scalability in general. Then, we will dive into specifics, describing the most common strategies and techniques for improving performance and scalability. We will demonstrate some of these techniques using our Product and Order Management APIs.
We highlight the potential of Java virtual threads for increasing application throughput by improving CPU usage efficiency in the context of API development.
We also show that to support performance and scalability, your API should be prepared...