Can functions invoke each other?

更新时间:
复制 MD 格式

Function Compute supports three approaches to cross-function invocation.

  • Custom domain names — Bind a custom domain name to a function and invoke it over HTTP using a stable endpoint. Use this approach when you want a simple HTTP-based interface without managing SDK clients. For setup details, see Configure a custom domain name.

  • InvokeFunction API — Call a function directly from another function using an SDK. Get temporary tokens from the context object of the handler to construct an FC client, then invoke the target function synchronously or asynchronously. SDKs are available for Node.js, Python, and Java.

  • Serverless Workflow — Orchestrate multiple functions into a workflow for complex, multi-step execution patterns. For details, see Asynchronous function invocation.