You are viewing a free preview of this lesson.
Subscribe to unlock all 10 lessons in this course and every other course on LearningBro.
Function Compute (FC) is Alibaba Cloud's serverless computing service. It lets you run code without managing servers — you just upload your code and Alibaba Cloud handles the rest. Function Compute is the equivalent of AWS Lambda or Azure Functions.
Serverless computing means:
Event (e.g., OSS upload)
│
▼
┌─────────────────┐
│ Function Compute │
│ Runtime │
│ ┌─────────────┐ │
│ │ Your Code │ │
│ └─────────────┘ │
└────────┬────────┘
│
▼
Response / Output
| Runtime | Versions |
|---|---|
| Node.js | 12, 14, 16, 18, 20 |
| Python | 3.6, 3.9, 3.10 |
| Java | 8, 11 |
| Go | 1.x |
| PHP | 7.2 |
| C# (.NET) | .NET Core 3.1, .NET 6 |
| Custom Runtime | Any language via HTTP server |
| Custom Container | Docker images |
Triggers define how a function is invoked:
| Trigger | Use Case |
|---|---|
| HTTP Trigger | Handle web requests (REST APIs, webhooks) |
| OSS Trigger | Process files uploaded to Object Storage Service |
| Timer Trigger | Run functions on a schedule (cron) |
| Log Service Trigger | Process log data in real time |
| Message Queue Trigger | Process messages from MNS or RocketMQ |
| CDN Trigger | Execute logic at CDN edge events |
| API Gateway Trigger | Expose functions as API endpoints |
User uploads image → OSS bucket → OSS event → Function Compute → Creates thumbnail → Saves to OSS
Subscribe to continue reading
Get full access to this lesson and all 10 lessons in this course.