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
| Language | Version | Recommended Scenarios | Features |
|---|---|---|---|
| Node.js | 26.x (Current), 24.11, 22.21, 20.19, 18.15, 16.13 | Web APIs, data processing | Rich ecosystem, high development efficiency |
| Python | 3.11, 3.10, 3.9, 3.7 | Data analysis, AI/ML | Rich scientific computing libraries |
| PHP | 8.0, 7.4 | Web development, CMS | Traditional strengths in Web development |
| Go | Latest version | High-performance services, system tools | Excellent performance, strong concurrency capabilities |
| Java | 11 (Kona JDK) | Enterprise applications, big data | Mature ecosystem, stable performance |
HTTP Cloud Function
| Language | Version | Recommended Framework | Applicable Scenarios |
|---|---|---|---|
| Node.js | 26.x (Current), 24.11, 22.21, 20.19, 18.15, 16.13 | Express, NestJS, Next.js | Full-stack applications, API services |
| Python | 3.11, 3.10, 3.9, 3.7 | Django, Flask, FastAPI | Web applications, data APIs |
| PHP | 8.0, 7.4 | Laravel, Symfony | Traditional Web applications |
| Go | Latest version | Gin, Echo, Fiber | High-performance API services |
| Java | 11 (Kona JDK) | Spring Boot, Quarkus | Enterprise-level Web services |
Version Status
Node.js
| Version | Status |
|---|---|
| 26.x | Current |
| 24.11 | Active LTS (Recommended) |
| 22.21 | Maintenance LTS |
| 20.19 | Available |
| 18.15 | Available |
| 16.13 | Available |
Python
| Version | Status |
|---|---|
| 3.11 | Recommended |
| 3.10 | Stable |
| 3.9 | Stable |
| 3.7 | Compatibility 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 Version | Absolute 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 |