This guide shows how you can optimize performance by pre-loading models when your container first starts.
on_start
lifecycle hook which you can add to your functions. The on_start
function will be run exactly once when your container first starts.
on_start
can be retrieved in the context
variable that is automatically passed to your handler: