Skip to content

Commit 2a2ec30

Browse files
committed
docs(srv): add titles to FAQ pages MTA-5486
1 parent 649534c commit 2a2ec30

File tree

1 file changed

+77
-67
lines changed

1 file changed

+77
-67
lines changed

faq/serverless-functions.mdx

Lines changed: 77 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -10,44 +10,25 @@ category: serverless
1010
productIcon: FunctionsProductIcon
1111
---
1212

13-
## What is serverless computing, and how does it differ from traditional cloud hosting?
13+
## Overview
14+
15+
### What is serverless computing, and how does it differ from traditional cloud hosting?
1416

1517
Serverless computing is a cloud execution model where the cloud provider dynamically manages the allocation of compute resources. Unlike traditional hosting models, you do not need to provision, scale, or maintain servers. Instead, you focus solely on writing and deploying your code, and the infrastructure scales automatically to meet demand.
1618

17-
## Why consider using Serverless Containers, Functions, or Jobs for my projects?
19+
### Why consider using Serverless Containers, Functions, or Jobs for my projects?
1820

1921
These services allow you to build highly scalable, event-driven, and pay-as-you-go solutions. Serverless Containers and Functions help you create applications and microservices without worrying about server management, while Serverless Jobs lets you run large-scale, parallel batch-processing tasks efficiently. This can lead to faster development cycles, reduced operational overhead, and cost savings.
2022

21-
## What are the cost benefits of using serverless services like Serverless Containers and Serverless Functions?
23+
### What are the cost benefits of using serverless services like Serverless Containers and Serverless Functions?
2224

2325
With serverless, you only pay for the computing resources you use. There are no upfront provisioning costs or paying for idle capacity. When your application traffic is low, the cost scales down, and when traffic spikes, the platform automatically scales up, ensuring you never overpay for unused resources.
2426

25-
## How does scaling work in these serverless services?
26-
27-
Scaling in Serverless Containers and Serverless Functions is handled automatically by the platform. When demand increases - more requests or events - the platform spins up additional instances to handle the load. When demand decreases, instances spin down. This ensures optimal performance without manual intervention.
28-
29-
## Can updates of Serverless Function cause downtime?
30-
31-
No, deploying a new version of your Serverless Function generates a **rolling update**. This means that a new version of the service is gradually
32-
rolled out to your users without downtime. Here is how it works:
33-
34-
* When a new version of your function is deployed, the platform automatically starts routing traffic to the new version incrementally, while still serving requests from the old version until the new one is fully deployed.
35-
* Once the new version is successfully running, we gradually shift all traffic to it, ensuring zero downtime.
36-
* The old version is decommissioned once the new version is fully serving traffic.
37-
38-
This process ensures a seamless update experience, minimizing user disruption during deployments. If needed, you can also manage traffic splitting between versions during the update process, allowing you to test new versions with a subset of traffic before fully migrating to them.
39-
40-
## Can I upgrade Serverless Function resources (vCPU and RAM) at any time?
41-
42-
Yes, Serverless Functions resources can be changed at any time without causing downtime, see the previous question for full details.
43-
44-
## How do I integrate my serverless solutions with other Scaleway services?
45-
46-
Integration is straightforward. Serverless Functions and Containers can be triggered by events from [Queues](/serverless/messaging/concepts/#queues) and [Topics and Events](/serverless/messaging/concepts/#topics-and-events), and can easily communicate with services like [Managed Databases](/managed-databases/) or [Serverless databases](/serverless/sql-databases/). [Serverless Jobs](/serverless/jobs/) can pull data from [Object Storage](/storage/object), or output processed results into a database. With managed connectors, APIs, and built-in integrations, linking to the broader Scaleway ecosystem is seamless.
27+
## Billing
4728

48-
## How am I billed for Serverless Functions?
29+
### How am I billed for Serverless Functions?
4930

50-
### Principle
31+
#### Principle
5132

5233
Serverless Functions is billed on a pay-as-you-go basis. Three components are taken into account:
5334

@@ -61,7 +42,7 @@ The scheme below illustrates our billing model:
6142

6243
<Lightbox src={["scaleway-Billing-FaaS-1-DEF.webp", "scaleway-Billing-FaaS-2-DEF.webp"]} size={"medium"} alt={["Functions Billing", "Functions Billing"]} />
6344

64-
### Pricing
45+
#### Pricing
6546

6647
* **Monthly requests:** **€0.15 per million requests**, and we offer **1M free requests** per account per month.
6748

@@ -89,9 +70,9 @@ The scheme below illustrates our billing model:
8970
| 3072 MB | €0.0000108 |
9071
| 4096 MB | €0.0000144 |
9172

92-
### Examples
73+
#### Examples
9374

94-
#### Example 1: Without resources provisioning
75+
##### Example 1: Without resources provisioning
9576

9677
| Criteria | Value |
9778
|-------------------------------|-------------|
@@ -116,7 +97,7 @@ The scheme below illustrates our billing model:
11697

11798
**Total monthly cost: €44.55**
11899

119-
#### Example 2: With resources provisioning
100+
##### Example 2: With resources provisioning
120101

121102
| Criteria | Value |
122103
|-------------------------------|-------------|
@@ -146,108 +127,137 @@ The scheme below illustrates our billing model:
146127

147128
**Total monthly cost: €45.72**
148129

149-
## How to select the right resources (vCPU/RAM) for Serverless Functions ?
130+
## Resources and performance
131+
132+
### How to select the right resources (vCPU/RAM) for Serverless Functions ?
150133

151134
Insufficient vCPU and RAM resources can lead to functions going to error status. Make sure to provision enough resources for your function.
152135

153136
We recommend you set high values, [use metrics to monitor](/serverless/functions/how-to/monitor-function/) the resource usage of your function, then adjust the value accordingly.
154137

155-
## How to reduce cold-start of Serverless Functions ?
138+
### How does scaling work in these serverless services?
139+
140+
Scaling in Serverless Containers and Serverless Functions is handled automatically by the platform. When demand increases - more requests or events - the platform spins up additional instances to handle the load. When demand decreases, instances spin down. This ensures optimal performance without manual intervention.
141+
142+
### Can I upgrade Serverless Function resources (vCPU and RAM) at any time?
143+
144+
Yes, Serverless Functions resources can be changed at any time without causing downtime, see the previous question for full details.
145+
146+
### Can updates of Serverless Function cause downtime?
147+
148+
No, deploying a new version of your Serverless Function generates a **rolling update**. This means that a new version of the service is gradually
149+
rolled out to your users without downtime. Here is how it works:
150+
151+
* When a new version of your function is deployed, the platform automatically starts routing traffic to the new version incrementally, while still serving requests from the old version until the new one is fully deployed.
152+
* Once the new version is successfully running, we gradually shift all traffic to it, ensuring zero downtime.
153+
* The old version is decommissioned once the new version is fully serving traffic.
154+
155+
This process ensures a seamless update experience, minimizing user disruption during deployments. If needed, you can also manage traffic splitting between versions during the update process, allowing you to test new versions with a subset of traffic before fully migrating to them.
156+
157+
### How to reduce cold-start of Serverless Functions ?
156158

157159
* **Optimize the startup**: Cold-start can be affected by a loading a large number of dependencies and opening lot of resources at startup.
158-
Ensure that your code avoid heavy computations or long-running initialization at statup and optimize the number of loaded libraries.
160+
Ensure that your code avoid heavy computations or long-running initialization at startup and optimize the number of loaded libraries.
159161

160162
* **Keep your function warm**: You can use CRON triggers at certain intervals to keep your function warm or set the min-scale parameter to one when required.
161163

162164
* **Increase resources**: Adding more vCPU and RAM can help to significantly reduce the cold-starts of your function.
163165

164166
* **Use sandbox v2**: we recommend to use sandbox v2 (advanced settings) to reduce cold start.
165167

166-
## What are the limitations of Serverless Functions?
168+
### What are the limitations of Serverless Functions?
167169

168170
Refer to our dedicated page about [Serverless Functions limitations and configuration restrictions](/serverless/functions/reference-content/functions-limitations/) for more information.
169171

170-
## What runtimes are available on Serverless Functions?
172+
### What runtimes are available on Serverless Functions?
171173

172174
Serverless Functions enables you to deploy functions using popular languages: `Go`, `Node`, `Python`, `PHP`, `Rust`...
173175

174176
Refer to our dedicated page about [Serverless Functions Runtimes Lifecycle](/serverless/functions/reference-content/functions-lifecycle/)
175177

176-
## How can I check build errors?
178+
### Why does my function have an instance running after deployment, even with min-scale 0?
177179

178-
Some Serverless runtimes (ex: `Go`, `Rust`) will compile your code in order to make your function executable.
179-
Compilation can fail if errors are present in the code, for example syntax errors and missing libraries.
180+
Currently, a new function instance will always start after each deployment, even if there is no traffic and the minimum
181+
scale is set to 0. This behavior is not configurable at this time.
180182

181-
Build errors are sent to the Observability platform on Scaleway Cockpit.
183+
## Use cases
182184

183-
In the `Serverless Functions Logs` dashboard, you will then be able to read information about your log build outputs, if errors occurred during compilation.
185+
### How can I deploy my Functions?
184186

185-
## Can I allow to list the IPs of my functions?
187+
Serverless Functions use cases are wide so [several ways to deploy functions](/serverless/functions/reference-content/deploy-function/) are available.
186188

187-
Serverless Functions does not yet support Private Networks. However, you can use the Scaleway IP ranges defined at [https://www.scaleway.com/en/peering/](https://www.scaleway.com/en/peering/) on Managed Databases and other products that allow IP filtering.
189+
### How do I integrate my serverless solutions with other Scaleway services?
188190

189-
## How can I deploy my Functions?
191+
Integration is straightforward. Serverless Functions and Containers can be triggered by events from [Queues](/serverless/messaging/concepts/#queues) and [Topics and Events](/serverless/messaging/concepts/#topics-and-events), and can easily communicate with services like [Managed Databases](/managed-databases/) or [Serverless databases](/serverless/sql-databases/). [Serverless Jobs](/serverless/jobs/) can pull data from [Object Storage](/storage/object), or output processed results into a database. With managed connectors, APIs, and built-in integrations, linking to the broader Scaleway ecosystem is seamless.
190192

191-
Serverless Functions use cases are wide so [several ways to deploy functions](/serverless/functions/reference-content/deploy-function/) are available.
193+
### How can I check build errors?
192194

193-
## How can I test my functions locally?
195+
Some Serverless runtimes (ex: `Go`, `Rust`) will compile your code in order to make your function executable.
196+
Compilation can fail if errors are present in the code, for example syntax errors and missing libraries.
197+
198+
Build errors are sent to the Observability platform on Scaleway Cockpit.
199+
200+
In the `Serverless Functions Logs` dashboard, you will then be able to read information about your log build outputs, if errors occurred during compilation.
201+
202+
### How can I test my functions locally?
194203

195204
Scaleway provides libraries to run your functions locally, for debugging, profiling, and testing purposes. Refer to the [dedicated documentation](/serverless/functions/reference-content/local-testing/) for more information.
196205

197-
## Where can I find some advanced code examples for functions?
206+
### Where can I find some advanced code examples for functions?
198207

199208
Check out our [serverless-examples repository](https://github.com/scaleway/serverless-examples) for real world projects.
200209

201-
## How to migrate runtimes?
210+
### How to migrate runtimes?
202211

203212
There are no constraints when changing a function runtime, you simply need to choose the runtime version you want.
204213
Upgrading a runtime is highly recommended in case of deprecation, and for runtimes that have reached end-of-support or end-of-life. See the [functions runtimes lifecycle documentation](/serverless/functions/reference-content/functions-lifecycle/) for more information.
205214

206-
## How do I configure access to a Private Network?
215+
## Network and storage
216+
217+
### How do I configure access to a Private Network?
207218

208219
Scaleway Serverless Functions does not currently support Scaleway VPC or Private Networks, though this feature is under development.
209220

210221
To add network restrictions on your resource, consult the [list of prefixes used at Scaleway](https://www.scaleway.com/en/peering/). Note that Serverless resources do not have dedicated or predictable IP addresses.
211222

212-
## How can I attach Block Storage to a Serverless Function?
223+
### Can I allow to list the IPs of my functions?
224+
225+
Serverless Functions does not yet support Private Networks. However, you can use the Scaleway IP ranges defined at [https://www.scaleway.com/en/peering/](https://www.scaleway.com/en/peering/) on Managed Databases and other products that allow IP filtering.
226+
227+
### Can I use Serverless Functions with Edge Services?
228+
229+
You cannot use Serverless Functions with Edge Services because there are no native integrations between the two products yet.
230+
231+
### Can I use the IP address of a Serverless Function?
232+
233+
By design, it is not possible to guarantee static IPs on Serverless compute resources.
234+
235+
### How can I attach Block Storage to a Serverless Function?
213236

214237
Scaleway Serverless Functions do not currently support attaching Block Storage. These functions are designed to be
215238
stateless, meaning they do not retain data between invocations. For persistent storage, we recommend using external
216239
solutions like Scaleway Object Storage.
217240

218-
## Why does my function have an instance running after deployment, even with min-scale 0?
219-
220-
Currently, a new function instance will always start after each deployment, even if there is no traffic and the minimum
221-
scale is set to 0. This behavior is not configurable at this time.
222-
223-
## How can I store data in my Serverless resource?
241+
### How can I store data in my Serverless resource?
224242

225243
Serverless resources are by default [stateless](/serverless/functions/concepts/#stateless), local storage is ephemeral.
226244

227245
For some use cases, such as saving analysis results, exporting data etc., it can be important to save data. Serverless resources can be connected to other resources from the Scaleway ecosystem for this purpose:
228246

229-
### Databases
247+
#### Databases
230248

231249
* [Serverless Databases](/serverless/sql-databases/): Go full serverless and take the complexity out of PostgreSQL database operations.
232250
* [Managed MySQL / PostgreSQL](/managed-databases/postgresql-and-mysql/): Ensure scalability of your infrastructure and storage with our new generation of Managed Databases designed to scale on-demand according to your needs.
233251
* [Managed Database for Redis®](/managed-databases/redis/): Fully managed Redis®* in seconds.
234252
* [Managed MongoDB®](/managed-databases/mongodb/): Get the best of MongoDB® and Scaleway in one database.
235253

236-
### Storage
254+
#### Storage
237255

238256
* [Object Storage](/storage/object/): Multi-AZ resilient object storage service ensuring high availability for your data.
239257
* [Scaleway Glacier](/storage/object/): Our outstanding Cold Storage class to secure long-term object storage. Ideal for deep archived data.
240258

241259
<Message type="tip">
242260
Explore all Scaleway products in the console and select the right product for your use case.
243261

244-
Some products are not listed but for example, on specific use cases Secret Manager can help you to store informations that requires versioning.
262+
Some products are not listed but for example, on specific use cases Secret Manager can help you to store information that requires versioning.
245263
</Message>
246-
247-
## Can I use Serverless Functions with Edge Services?
248-
249-
You cannot use Serverless Functions with Edge Services because there are no native integrations between the two products yet.
250-
251-
## Can I use the IP address of a Serverless Function?
252-
253-
By design, it is not possible to guarantee static IPs on Serverless compute resources.

0 commit comments

Comments
 (0)