Cold-starting a function
When the application has been freshly deployed, it is pretty easy to imagine that there will be no instances of the function that will be executing currently. When a new request comes in that asks for the functionality provided by the function we have just deployed on the infrastructure. Now, the cloud provider systems are notified that there are no running instances of the function that can handle the incoming request.
Once the provider system is made aware of the situation, it spawns up a new instance with the function code inside it. This instance now starts to execute the function based on the parameters provided in the request and a response is generated by the function and sent back to the requesting client. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access