There are several tips and tricks you can employ to work around cold starts. The most common recommendation is to implement another function on a timer, say every 5 minutes, which then invokes your target function. With this pattern, the target function is always kept warm, which means it can fulfill a legitimate request more quickly. This can be a useful trick; however, it does not always solve the problem.
Remember, cloud functions will scale automatically. Think back to some of the patterns in this book, specifically the Fanout and MapReduce patterns. In those examples, multiple instances of our functions were being executed concurrently. In the case of our Fanout pattern for image resizing, a single invocation ...