Skip to content

Commit a93dbdb

Browse files
update concepts of timeouts
1 parent c11205f commit a93dbdb

File tree

2 files changed

+16
-9
lines changed

2 files changed

+16
-9
lines changed

serverless/containers/concepts.mdx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,14 @@ A container's privacy policy defines whether a container may be invoked anonymou
146146

147147
The registry endpoint parameter is the resource linked to the container image used in your Serverless Container.
148148

149+
## Request timeout
150+
151+
Request timeout is the maximum amount of time a request to a Serverless Function is allowed to run before the request is terminated. Purpose of this parameter is to ensure long-running requests do not hand indefinitely, which could impact ressource usage and scalability.
152+
153+
Use cases:
154+
* **Shorter timeouts:** Ideal for use cases with quick, predictable response times, such as HTTP APIs or real-time applications.
155+
* **Longer timeouts:** Useful for tasks requiring extended processing times, like data processing, report generation, or integration with slower external services.
156+
149157
## Sandbox
150158

151159
A sandbox is an isolation area for your container. Serverless Containers offer two sandboxing environments:
@@ -219,10 +227,6 @@ A Serverless Container can have the following statuses:
219227

220228
Terraform is a tool for managing infrastructure using code. [Read the Terraform documentation for Serverless Containers](https://registry.terraform.io/providers/scaleway/scaleway/latest/docs/resources/container).
221229

222-
## Timeout
223-
224-
The timeout is the maximum length of time your container can spend processing a request before being stopped. This value must be in the range 10s to 900s.
225-
226230
## vCPU
227231

228232
vCPU is the abbreviation for **v**irtual **C**entralized **P**rocessing **U**nit. A vCPU represents a portion or share of the underlying physical CPU assigned to a particular container.

serverless/functions/concepts.mdx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,14 @@ A queue trigger is a mechanism that connects a function to a queue created with
109109
For each message that is sent to a queue, the trigger reads the message and invokes the associated function with the message as the input parameter.
110110
The function can then process the message and perform any required actions, such as updating a database or sending a notification.
111111

112+
## Request timeout
113+
114+
Request timeout is the maximum amount of time a request to a Serverless Function is allowed to run before the request is terminated. Purpose of this parameter is to ensure long-running requests do not hand indefinitely, which could impact ressource usage and scalability.
115+
116+
Use cases:
117+
* **Shorter timeouts:** Ideal for use cases with quick, predictable response times, such as HTTP APIs or real-time applications.
118+
* **Longer timeouts:** Useful for tasks requiring extended processing times, like data processing, report generation, or integration with slower external services.
119+
112120
## Rolling update
113121

114122
When deploying a new version of a Serverless Function, a rolling update is applied by default. This means that the new version of the service is gradually rolled out to your users without downtime.
@@ -175,11 +183,6 @@ A Serverless Function can have the following statuses:
175183
* **Pending**: your resource is under deployment.
176184
* **Error**: something went wrong during the deployment process or build of the source code to image. [Check our troubleshooting documentation](/serverless/functions/troubleshooting/function-in-error-state/) to solve the issue.
177185

178-
179-
## Timeout
180-
181-
The timeout is the maximum length of time your handler can spend processing a request before being stopped. This value must be in the range 10s to 900s.
182-
183186
## Trigger
184187

185188
In a serverless architecture, a function is not running constantly, but is rather triggered by an event.

0 commit comments

Comments
 (0)