ScalewaySkip to loginSkip to main contentSkip to footer section

Serverless Functions

Experience an easy way to run your code on the cloud.

Build scalable services

Optimize code execution time by selecting the memory and vCPU needed for your function. As traffic increases, your service will automatically adapt and scale to deliver seamless performance to your customers.

Build applications quicker

Serverless Functions allows the automatic and flexible scaling of your workload, allowing you to focus on building your applications instead of spending time managing your infrastructure.

Multi-cloud compatible

Your functions run on Knative, the open-source serverless framework for Kubernetes. They'll work with any provider, on any machine.

Popular use cases

Automate IT operations

Focus on high added-value activities by automating your infrastructure management operations, such as provisioning, scaling, and cleaning.

ServerlessFaaS-Schema-1040px-Dark.webp

Key features

Usage-based pricing

Billing is dependent on the number of requests and consumed resources (memory). Only pay when your functions are running.

Scalable & No servers

Serverless Functions runs your code without you needing to provision or manage any infrastructure.
Write your code, transfer it to Serverless Functions, and it runs and scales up or down automatically.

Supports various languages

We support Node.js, Go, Python, PHP and Rust. You can choose your programming language to fit your application scenarios.

Custom domains

Choose the domains associated with Serverless Functions and map your services to the domain you need to allocate to your functions.

Triggers

Trigger your function using synchronous HTTP calls to the function URL, Schedule execution using CRON or start your function asynchronously using message queues and event-driven patterns.

Security

Serverless Functions provides a secure-by-default environment by managing all underlying infrastructure, including OS patching and security configurations. Each service runs within a strong sandbox for kernel-level isolation from other workloads. You can use VPC Service Controls to create a security perimeter and use secrets for sensitive data.

Easy start with great UX

Manage your services by making development logic more flexible

Go to pricing

Why choose Scaleway?

Our European, multi-cloud & open source DNA

Based in France with builders and customers all over the world, our services are located within the European Union and protected by its regulations.

Sustainable by design

100% of electricity consumed in our data centers comes from renewable energy. Decommissioned hardware are securely reused & recycled.

24/7 Ticket support

Our technical assistance is available 24/7 to answer all your questions and assist you. Upgrade your support plan to reach our assistance team directly by phone.

Transparent & predictable billing

Our services are designed to offer you the best price/performance ratio, with straightforward billing to grow your business and keep your expenses under control.

Changelog

Serverless Functions

  • fixed

    Improved memory metric accuracy for sandbox v2

    We have implemented a fix to improve the accuracy of memory usage metrics for Serverless Functions services. This update resolves a previous reporting inconsistency to ensure that metrics more precisely reflect actual resource consumption.

    • What changed: We refined the underlying calculation used to report memory usage.

    • What to expect: You may notice that memory metrics in your dashboards and views appear slightly lower than before. This is an expected result of the improved measurement accuracy, and does not indicate a change in your application's actual performance or resource allocation.

    • Scope: This fix applies exclusively to services using sandbox v2.

    No action is required on your part.

  • changed

    Environment variables and secret variables limit increase

    The maximum number of environment variables and secret environment variables has been increased from 100 to 200.

  • fixed

    Improved cold start for Serverless Functions attached to Private Networks

    Optimizations have been applied to Serverless Functions connected to Private Networks to address significant cold start latency. Startup times have now been reduced.

  • changed

    Serverless Functions - Authentication for private resources via IAM

    Serverless Functions uses a product-specific authentication method based on JWT to authenticate requests for private endpoints. It is now possible to use the new IAM policy FunctionsPrivateAccess.

    Previous authentication method based on JWT will be deprecated gradually. Follow How to migrate from JWT to IAM authentication for private functions.

  • changed

    Serverless Function Test tab Update

    The Testing tab for Serverless Functions has been updated to replace the in-browser test request system with a ready-to-use curl command. This change aims to avoid browser-induced limitations that can cause CORS errors.

View full changelog

Get started with tutorials

Frequently asked questions

What is Scaleway Serverless Functions?

SouthShortIcon

Serverless Functions is a service which enables you to execute small components (functions, code snippets) in the cloud with no need for server management.

Why should I use Serverless Functions?

SouthShortIcon

If you want to deploy simple functions or components (either in a microservices application, to automate cloud operation, or to connect services) then Serverless Functions is for you!”

What use cases does Scaleway Serverless Functions support?

SouthShortIcon

We recommend using Scaleway Serverless Functions to handle asynchronous tasks such as media or data transformation, infrastructure management automation. If your use case requires low latency, you can provision resources using the minimum scale feature.

Which programming languages and runtimes are supported?

SouthShortIcon

We natively support the most popular languages in the industry, including Python, Node.js, Go, PHP, and Rust. For each language, we provide multiple runtime versions that are regularly updated to ensure security and performance. If your project requires a specific language or a version not natively supported, we recommend using Serverless Containers for total environment flexibility.

Can I securely connect my functions to other Scaleway services?

SouthShortIcon

Yes. Serverless Functions are deeply integrated into the Scaleway ecosystem. You can easily connect your functions to our Managed Databases, Object Storage, or Messaging and Queuing (NATS). Furthermore, you can attach your functions to a VPC (Virtual Private Cloud), allowing them to communicate securely and privately with your other cloud resources.

How does automatic scaling work with Serverless Functions?

SouthShortIcon

One of the greatest advantages of Serverless Functions is its ability to scale instantly and automatically. Your function can scale from "zero to infinity" (within your defined limits) based on the number of incoming requests. If there is no traffic, no instances are active. When a request arrives, an instance is spun up to handle it. You can also configure a minimum number of instances (min-scale) to eliminate "cold starts" for latency-critical services.

Where can I find the SLA (Service Level Agreement) for this product?

SouthShortIcon

You can find the SLA for this product here.

How are Serverless Functions billed compared to a traditional Instance?

SouthShortIcon

Unlike an Instance which is billed by the hour regardless of usage, Serverless Functions are billed by the millisecond of execution time and the number of requests. We also offer a generous Free Tier every month. This is the most cost-effective model for intermittent or unpredictable workloads, as you pay strictly for the compute time used, eliminating any waste of idle resources.