Skip to main content

Runtime Environment Support

Cloud functions support multiple programming languages and runtime versions. This document is the single source of truth for cloud function runtime environment information. All other documentation references this document for runtime details.

Supported Runtimes

Regular Cloud Function

LanguageVersionRecommended ScenariosFeatures
Node.js26.x (Current), 24.11, 22.21, 20.19, 18.15, 16.13Web APIs, data processingRich ecosystem, high development efficiency
Python3.11, 3.10, 3.9, 3.7Data analysis, AI/MLRich scientific computing libraries
PHP8.0, 7.4Web development, CMSTraditional strengths in Web development
GoLatest versionHigh-performance services, system toolsExcellent performance, strong concurrency capabilities
Java11 (Kona JDK)Enterprise applications, big dataMature ecosystem, stable performance

HTTP Cloud Function

LanguageVersionRecommended FrameworkApplicable Scenarios
Node.js26.x (Current), 24.11, 22.21, 20.19, 18.15, 16.13Express, NestJS, Next.jsFull-stack applications, API services
Python3.11, 3.10, 3.9, 3.7Django, Flask, FastAPIWeb applications, data APIs
PHP8.0, 7.4Laravel, SymfonyTraditional Web applications
GoLatest versionGin, Echo, FiberHigh-performance API services
Java11 (Kona JDK)Spring Boot, QuarkusEnterprise-level Web services

Version Status

Node.js

VersionStatus
26.xCurrent
24.11Active LTS (Recommended)
22.21Maintenance LTS
20.19Available
18.15Available
16.13Available

Python

VersionStatus
3.11Recommended
3.10Stable
3.9Stable
3.7Compatibility only

Standard Language Environment Absolute Paths

When writing the scf_bootstrap startup file for HTTP cloud functions, you must use the absolute path corresponding to the language.

Language VersionAbsolute Path
Node.js 26.x/var/lang/node26/bin/node
Node.js 24.11/var/lang/node24/bin/node
Node.js 22.21/var/lang/node22/bin/node
Node.js 20.19/var/lang/node20/bin/node
Node.js 18.15/var/lang/node18/bin/node
Node.js 16.13/var/lang/node16/bin/node
Python 3.11/var/lang/python311/bin/python3.11
Python 3.10/var/lang/python310/bin/python3.10
Python 3.9/var/lang/python39/bin/python3.9
Python 3.7/var/lang/python37/bin/python3.7
PHP 8.0/var/lang/php80/bin/php
PHP 7.4/var/lang/php74/bin/php
Java 11/var/lang/java11/bin/java