What problem does it solve?
The SCF Worker skill unloads long-running, asynchronous processing from synchronous request paths by providing robust cloud function-based handling for COS uploads, callbacks, media processing, webhook forwarding, and backend bridging. It emphasizes security, reliability, and observability across distributed tasks.
Core Features & Use Cases
- COS direct-upload signature generation with minimal permissions.
- COS callback handling with signature verification and idempotent state persistence.
- Asynchronous media tasks such as transcoding and thumbnail generation, decoupled from user requests.
- Webhook forwarding with retry, idempotence, and dead-letter handling.
- Backend bridging via REST/OpenAPI or queues to synchronize results.
- Structured logs and metrics for success rate, retry rate, and latency.
Quick Start
Deploy and configure the SCF Worker to handle CMS-S-* task cards. Set environment variables for COS buckets/regions, temporary credentials, signatures expiry, and webhook secrets. Deploy the following SCF functions (media-sign, cos-callback, transcode, webhook-forward) and wire them to your triggers; monitor via logs and metrics.