From fb0198417d3106b700e61af473fcc3a4677c2551 Mon Sep 17 00:00:00 2001 From: SamyOubouaziz Date: Thu, 21 Aug 2025 09:34:27 +0200 Subject: [PATCH 1/4] docs(srv): add triangle links to serverless MTA-6405 --- macros/serverless/serverless-concepts.mdx | 24 +++++++++++++++++++++++ pages/serverless-containers/concepts.mdx | 18 +++-------------- 2 files changed, 27 insertions(+), 15 deletions(-) create mode 100644 macros/serverless/serverless-concepts.mdx diff --git a/macros/serverless/serverless-concepts.mdx b/macros/serverless/serverless-concepts.mdx new file mode 100644 index 0000000000..db4b8a5dbd --- /dev/null +++ b/macros/serverless/serverless-concepts.mdx @@ -0,0 +1,24 @@ +--- +macro: serverless-Concepts +--- +## Serverless Containers + +Serverless Containers is a fully managed service that enables you to run containerized applications in a scalable and serverless environment. + +It automatically handles infrastructure management, scaling, and load balancing, allowing you to focus on writing code without worrying about servers or clusters. Serverless Containers supports any language, framework, or binary that can run in a container, and it integrates seamlessly with other Scaleway services, making it ideal for deploying modern, event-driven, and API-based applications. + +Refer to the [Serverless Containers Quickstart](/serverless-containers/quickstart/) for more information on how to deploy and use a container. + +## Serverless Functions + +Serverless Functions are fully managed compute services that allow you to run small, stateless code snippets or functions in response to HTTP requests or events. + +These functions automatically scale based on demand and are designed to be lightweight, event-driven, and easily deployable, eliminating the need to worry about infrastructure management. Functions is built on top of Serverless Containers, meaning you can run your functions packaged in containers and have them scale efficiently. + +Refer to the [Serverless Functions Quickstart](/serverless-functions/quickstart/) for more information on how to deploy and invoke a function. + +## Serverless Jobs + +Serverless Jobs are similar to Serverless Containers but are better suited for running longer workloads. See [the comparison between Serverless products](/serverless-containers/reference-content/difference-jobs-functions-containers) for more information. + +Refer to the [Serverless Jobs Quickstart](/serverless-jobs/quickstart/) for more information on how to create and execute a job. \ No newline at end of file diff --git a/pages/serverless-containers/concepts.mdx b/pages/serverless-containers/concepts.mdx index 7b91ce9b60..663124ea1c 100644 --- a/pages/serverless-containers/concepts.mdx +++ b/pages/serverless-containers/concepts.mdx @@ -5,6 +5,8 @@ tags: containers cold-start concurrency container-registry environment-variables dates: validation: 2025-05-26 --- +import ServerlessConcepts from '@macros/serverless/serverless-concepts.mdx' + ## Arguments @@ -246,21 +248,7 @@ For more details about the advantages of using Serverless, [read the Serverless Serverless.com (Serverless Framework) is a tool that allows you to deploy serverless applications without having to manage Serverless Container's API call. Write and deploy a YAML configuration file, everything else is handled automatically, even the image building. -## Serverless Containers - -Serverless Containers is a fully managed service that enables you to run containerized applications in a scalable and serverless environment. - -It automatically handles infrastructure management, scaling, and load balancing, allowing you to focus on writing code without worrying about servers or clusters. Serverless Containers supports any language, framework, or binary that can run in a container, and it integrates seamlessly with other Scaleway services, making it ideal for deploying modern, event-driven, and API-based applications. - -## Serverless Functions - -Serverless Functions are fully managed compute services that allow you to run small, stateless code snippets or functions in response to HTTP requests or events. - -These functions automatically scale based on demand and are designed to be lightweight, event-driven, and easily deployable, eliminating the need to worry about infrastructure management. Functions is built on top of Serverless Containers, meaning you can run your functions packaged in containers and have them scale efficiently. - -## Serverless Jobs - -Serverless Jobs are similar to Serverless Containers but are better suited for running longer workloads. See [the comparison between Serverless products](/serverless-containers/reference-content/difference-jobs-functions-containers) for more information. + ## Stateless From 0798f70f777a6594a45e603b16b64d42fd782aab Mon Sep 17 00:00:00 2001 From: SamyOubouaziz Date: Thu, 21 Aug 2025 14:04:01 +0200 Subject: [PATCH 2/4] docs(srv): update --- pages/serverless-containers/concepts.mdx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/serverless-containers/concepts.mdx b/pages/serverless-containers/concepts.mdx index 663124ea1c..9844aa8025 100644 --- a/pages/serverless-containers/concepts.mdx +++ b/pages/serverless-containers/concepts.mdx @@ -167,6 +167,8 @@ A NATS trigger is a mechanism that connects a container to a [NATS](/nats/concep For each message that is sent to a NATS subject, the NATS trigger reads the message and invokes the associated container with the message as the input parameter. The container can then process the message and perform any required actions, such as updating a database or sending a notification. +Refer to the [dedicated documenation](/serverless-containers/how-to/add-trigger-to-a-container/) for more information on how to add triggers to a Serverless Container. + ## Port The port of a containerized application refers to the network port that the application inside the container listens on for incoming requests. @@ -200,6 +202,8 @@ A queue trigger is a mechanism that connects a container to a queue created with For each message that is sent to a queue, the trigger reads the message and invokes the associated container with the message as the input parameter. The container can then process the message, and perform any required actions, such as updating a database or sending a notification. +Refer to the [dedicated documenation](/serverless-containers/how-to/add-trigger-to-a-container/) for more information on how to add triggers to a Serverless Container. + ## Registry endpoint The registry endpoint parameter is the resource linked to the container image used in your Serverless Container. From a3013cc70d633fa8c6f7cfb7a8e7d2268d055ef6 Mon Sep 17 00:00:00 2001 From: SamyOubouaziz Date: Thu, 21 Aug 2025 14:32:50 +0200 Subject: [PATCH 3/4] docs(srv): update --- pages/serverless-functions/concepts.mdx | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/pages/serverless-functions/concepts.mdx b/pages/serverless-functions/concepts.mdx index fc71d58233..15efbe299f 100644 --- a/pages/serverless-functions/concepts.mdx +++ b/pages/serverless-functions/concepts.mdx @@ -6,6 +6,9 @@ dates: validation: 2025-05-27 --- +import ServerlessConcepts from '@macros/serverless/serverless-concepts.mdx' + + ## Autoscaling Autoscaling refers to the ability of Serverless Functions to automatically adjust the number of instances without manual intervention. @@ -181,21 +184,7 @@ For more details about the advantages of using Serverless, [read the Serverless Serverless.com (Serverless Framework) is a tool that enables the deployment of serverless applications without having to manage Serverless Function's API call. Just write your configuration in a YAML and deploy, it handles everything. -## Serverless Containers - -Serverless Containers is a fully managed service that enables you to run containerized applications in a scalable and serverless environment. - -It automatically handles infrastructure management, scaling, and load balancing, allowing you to focus on writing code without worrying about servers or clusters. Serverless Containers supports any language, framework, or binary that can run in a container, and it integrates seamlessly with other Scaleway services, making it ideal for deploying modern, event-driven, and API-based applications. - -## Serverless Functions - -Serverless Functions are fully managed compute services that allow you to run small, stateless code snippets or functions in response to HTTP requests or events. - -These functions automatically scale based on demand and are designed to be lightweight, event-driven, and easily deployable, eliminating the need to worry about infrastructure management. Functions is built on top of Serverless Containers, meaning you can run your functions packaged in containers and have them scale efficiently. - -## Serverless Jobs - -Serverless Jobs are similar to Serverless Containers but are better suited for running longer workloads. See [the comparison between Serverless products](/serverless-functions/reference-content/difference-jobs-functions-containers) for more information. + ## Stateless From 400bb7614fd1cf9056dd07ff7da79f66813b03d2 Mon Sep 17 00:00:00 2001 From: SamyOubouaziz Date: Thu, 21 Aug 2025 14:36:22 +0200 Subject: [PATCH 4/4] docs(srv): update --- pages/serverless-jobs/concepts.mdx | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/pages/serverless-jobs/concepts.mdx b/pages/serverless-jobs/concepts.mdx index c2be6b5508..269b33a44a 100644 --- a/pages/serverless-jobs/concepts.mdx +++ b/pages/serverless-jobs/concepts.mdx @@ -6,6 +6,7 @@ dates: validation: 2025-06-09 posted: 2023-11-07 --- +import ServerlessConcepts from '@macros/serverless/serverless-concepts.mdx' ## Container Registry @@ -59,21 +60,7 @@ Refer to the [dedicated FAQ](/serverless-jobs/faq/#how-can-i-configure-access-to A schedule (cron) is a mechanism used to automatically start a Serverless Job at a specific time on a recurring schedule. It works similarly to a traditional Linux cron job, using the `* * * * *` format. Refer to our [cron schedules reference](/serverless-jobs/reference-content/cron-schedules/) for more information. -## Serverless Containers - -Serverless Containers is a fully managed service that enables you to run containerized applications in a scalable and serverless environment. - -It automatically handles infrastructure management, scaling, and load balancing, allowing you to focus on writing code without worrying about servers or clusters. Serverless Containers supports any language, framework, or binary that can run in a container, and it integrates seamlessly with other Scaleway services, making it ideal for deploying modern, event-driven, and API-based applications. - -## Serverless Functions - -Serverless Functions are fully managed compute services that allow you to run small, stateless code snippets or functions in response to HTTP requests or events. - -These functions automatically scale based on demand and are designed to be lightweight, event-driven, and easily deployable, eliminating the need to worry about infrastructure management. Functions is built on top of Serverless Containers, meaning you can run your functions packaged in containers and have them scale efficiently. - -## Serverless Jobs - -Serverless Jobs are similar to Serverless Containers but are better suited for running longer workloads. See [the comparison between Serverless products](/serverless-jobs/reference-content/difference-jobs-functions-containers) for more information. + For more details about advantages of using Serverless, [read the Serverless overview page](/serverless-jobs/reference-content/serverless-overview/).