From 8834293137a9593aec372e3ccf9213ded9077603 Mon Sep 17 00:00:00 2001 From: thomas-tacquet Date: Fri, 25 Oct 2024 17:23:08 +0200 Subject: [PATCH 1/2] feat(serverless): advanced cold starts doc --- serverless/containers/concepts.mdx | 9 ++++++++- serverless/functions/concepts.mdx | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/serverless/containers/concepts.mdx b/serverless/containers/concepts.mdx index f59a9ed48a..ff42ee2a93 100644 --- a/serverless/containers/concepts.mdx +++ b/serverless/containers/concepts.mdx @@ -14,7 +14,14 @@ categories: ## Cold Start -Cold start is the time a container Instance takes to handle a request when it is called for the first time. +Cold start is the time a Container takes to handle a request when it is called for the first time. + +Startup process steps are: +* Downloading the container image to our infrastructure +* Starting the container. Optimise your container startup speed to minimize this step *(ex: avoid waiting for slow connections or downloading large objects etc... at statup)* +* Waiting for the containeer to listen on the configured port. + +[How to reduce cold start](/faq/serverless-containers/#how-can-i-reduce-the-cold-starts-of-serverless-containers) ## Concurrency diff --git a/serverless/functions/concepts.mdx b/serverless/functions/concepts.mdx index 94a026da99..bc6ae552d3 100644 --- a/serverless/functions/concepts.mdx +++ b/serverless/functions/concepts.mdx @@ -14,7 +14,14 @@ categories: ## Cold Start -Cold start is the time a function Instance takes to handle a request when it is called for the first time. +Cold Start is the time a Fuction takes to handle a request when it is called for the first time. + +Startup process steps are: +* Downloading the container image (which contains the built Function) to our infrastructure +* Starting the container and the runtime +* Waiting for the container to be ready. + +[How to reduce cold start](/faq/serverless-functions/#how-to-reduce-cold-start-of-serverless-functions) ## CRON trigger From 6c29f3b7cf87dc2b560090f9f365519f507ffcc3 Mon Sep 17 00:00:00 2001 From: Thomas TACQUET Date: Mon, 28 Oct 2024 10:31:14 +0100 Subject: [PATCH 2/2] Apply suggestions from code review Co-authored-by: Rowena Jones <36301604+RoRoJ@users.noreply.github.com> Co-authored-by: nerda-codes <87707325+nerda-codes@users.noreply.github.com> --- serverless/containers/concepts.mdx | 4 ++-- serverless/functions/concepts.mdx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/serverless/containers/concepts.mdx b/serverless/containers/concepts.mdx index ff42ee2a93..b5628f1d39 100644 --- a/serverless/containers/concepts.mdx +++ b/serverless/containers/concepts.mdx @@ -18,10 +18,10 @@ Cold start is the time a Container takes to handle a request when it is called f Startup process steps are: * Downloading the container image to our infrastructure -* Starting the container. Optimise your container startup speed to minimize this step *(ex: avoid waiting for slow connections or downloading large objects etc... at statup)* +* Starting the container. Optimize your container startup speed to minimize this step (e.g., avoid waiting for slow connections or downloading large objects at startup) * Waiting for the containeer to listen on the configured port. -[How to reduce cold start](/faq/serverless-containers/#how-can-i-reduce-the-cold-starts-of-serverless-containers) +[How to reduce cold starts](/faq/serverless-containers/#how-can-i-reduce-the-cold-starts-of-serverless-containers) ## Concurrency diff --git a/serverless/functions/concepts.mdx b/serverless/functions/concepts.mdx index bc6ae552d3..f15d497b0d 100644 --- a/serverless/functions/concepts.mdx +++ b/serverless/functions/concepts.mdx @@ -21,7 +21,7 @@ Startup process steps are: * Starting the container and the runtime * Waiting for the container to be ready. -[How to reduce cold start](/faq/serverless-functions/#how-to-reduce-cold-start-of-serverless-functions) +[How to reduce cold starts](/faq/serverless-functions/#how-to-reduce-cold-start-of-serverless-functions) ## CRON trigger