You are viewing a free preview of this lesson.
Subscribe to unlock all 10 lessons in this course and every other course on LearningBro.
Serverless Cloud Function (SCF) is Tencent Cloud's event-driven serverless compute service. SCF lets you run code without managing servers — the equivalent of AWS Lambda or Alibaba Cloud Function Compute.
SCF allows you to:
Event (e.g., COS upload, API Gateway request)
│
▼
┌─────────────────┐
│ SCF Runtime │
│ ┌─────────────┐ │
│ │ Your Code │ │
│ └─────────────┘ │
└────────┬────────┘
│
▼
Response / Output
| Runtime | Versions |
|---|---|
| Python | 2.7, 3.6, 3.7, 3.9 |
| Node.js | 10, 12, 14, 16, 18 |
| Java | 8, 11 |
| Go | 1.x |
| PHP | 5.6, 7.2, 7.4, 8.0 |
| Custom Runtime | Any language |
| Custom Image | Docker container images |
Triggers define how a function is invoked:
| Trigger | Use Case |
|---|---|
| API Gateway | HTTP requests (REST APIs, webhooks) |
| COS | File uploads, deletions in Cloud Object Storage |
| Timer | Scheduled execution (cron expressions) |
| CMQ (Message Queue) | Process messages from Cloud Message Queue |
| CKafka | Process messages from Cloud Kafka |
| CLS (Log Service) | Process log data in real time |
| MPS (Media Processing) | Media transcoding completion events |
User uploads image → COS bucket → COS event → SCF function → Creates thumbnail → Saves to COS
Subscribe to continue reading
Get full access to this lesson and all 10 lessons in this course.