The real test of any web API begins when it's consumed by various clients (majority are frontend applications), increasing HTTP traffic with varying load. This is when we start to realize the web API performance has taken a hit, then the need for optimization and performance improvement comes into the picture.
The concerns for performance are mostly application-specific, but it's recommended to follow the best practices and techniques while building web API applications. Performance and optimization is a continuous process, and it needs regular monitoring to keep a check on bottlenecks.
As web APIs are exposed and consumed over HTTP, exploring various best practices to keep an application performing well, in case of light or heavy load, should be a top priority.
In this chapter, we will learn how to measure application performance, write...