Measure the scale

The main feature of serverless is efficient scaling, but we should code it so that it scales efficiently. We could avoid calling a direct data connection within the function, or avoid adding huge numbers of dependency libraries. So, in short, the lighter the function, the faster the cold start is, and eventually it will scale much faster. Also make sure that functions are load tested before they reach production for efficient scaling.

In this section, we looked into the various best practices that make serverless functions perform and scale very efficiently. Although this is not the complete list, these are a few of the very important ones. In the next section, we will learn the best practices for each cloud provider and ...

Get DevOps for Serverless Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.