Overview
Function Compute supports multiple languages through runtimes. Select a runtime when you create a function. Change or upgrade the runtime by updating the function configuration. Use the runtime list and deprecation schedule below to plan migrations before support ends.
How it works
Each function runs inside an execution environment—a secure, isolated sandbox that manages the resources your function needs. When a function is invoked, Function Compute reuses an available execution environment from a previous invocation. If none is available, it creates a new one.
Function Compute builds each runtime on a specific Linux distribution. Four distributions are supported: Debian 9 (Stretch), Debian 10 (Buster), Debian 11 (Bullseye), and Debian 12 (Bookworm). A runtime can support one or more versions of a language, or multiple languages. When a language version reaches end of life, the runtime for that language or framework version is deprecated.
Supported runtimes
Node.js
| Version | Identifier | Operating system | Architecture |
|---|---|---|---|
| Node.js 20.x | nodejs20 | Linux (Debian 10) | x86_64 |
| Node.js 18.x | nodejs18 | Linux (Debian 10) | x86_64 |
| Node.js 16.x | nodejs16 | Linux (Debian 9) | x86_64 |
| Node.js 14.x | nodejs14 | Linux (Debian 9) | x86_64 |
| Node.js 12.x | nodejs12 | Linux (Debian 9) | x86_64 |
Python
| Version | Identifier | Operating system | Architecture |
|---|---|---|---|
| Python 3.12 (public preview) | python3.12 | Debian 11 | x86_64 |
| Python 3.10 | python3.10 | Debian 10 | x86_64 |
| Python 3.9 | python3.9 | Debian 9 | x86_64 |
| Python 3.6 | python3 | Debian 9 | x86_64 |
PHP
| Version | Operating system | Architecture |
|---|---|---|
| PHP 7.2 | Linux | x86_64 |
Java
| Version | Operating system | Architecture |
|---|---|---|
| Java 11 | Linux | x86_64 |
| Java 8 | Linux | x86_64 |
.NET
| Version | Operating system |
|---|---|
| .NET Core 3.1 | Debian 9 |
Go
| Version | Operating system | Architecture |
|---|---|---|
| Go 1.x | Linux | x86_64 |
Custom runtimes
Custom runtimes let you run any language or framework not covered by the built-in runtimes.
| Runtime | Identifier | Operating system | Architecture |
|---|---|---|---|
| Custom Runtime (Debian 12) | custom.debian12 | Debian 12 | x86_64 |
| Custom Runtime (Debian 11) | custom.debian11 | Debian 11 | x86_64 |
| Custom Runtime (Debian 10) | custom.debian10 | Debian 10 | x86_64 |
| Custom Runtime (Debian 9) | custom | Debian 9 | x86_64 |
Runtime deprecation policy
Function Compute deprecates runtimes in two phases when a language version reaches end of life. Security updates and technical support are no longer provided after deprecation begins.
| Phase | What happens |
|---|---|
| Phase 1 | New functions cannot be created using the runtime. Existing functions can still be executed and updated. |
| Phase 2 | Functions cannot be created or updated using the runtime. Existing functions can still be executed. |
Function Compute does not block invocations of functions using a deprecated runtime. To continue receiving security updates and technical support, migrate your functions to a supported runtime.
Function Compute notifies you by email or internal messages 60 days before a runtime is deprecated. The table below lists the runtime deprecation schedule. Runtimes not listed have no scheduled deprecation date.
| Runtime | Identifier | Phase 1 | Phase 2 |
|---|---|---|---|
| Node.js 12 | nodejs12 | None | None |
| Node.js 10 | nodejs10 | October 15, 2024 | December 15, 2024 |
| Node.js 8 | nodejs8 | October 15, 2024 | December 15, 2024 |
| .NET Core 2.1 | dotnetcore2.1 | June 1, 2023 | September 25, 2024 |
| Python 2.7 | python2.7 | June 1, 2023 | September 25, 2024 |
| Node.js 6 | nodejs6 | June 1, 2023 | September 25, 2024 |
| Node.js 4.4 | nodejs4.4 | June 1, 2023 | September 25, 2024 |
Related topics
-
Custom runtimes support runtime extensions to optimize and adjust function behavior for specific business needs. See Use Loggie in custom runtimes and ARMS extensions for custom runtimes.
-
For an overview of built-in and custom runtime capabilities, see Code development overview.