Serverless Functions
Azure Functions
Azure Functions is a serverless compute service that runs event-driven code without provisioning or managing infrastructure. You write functions in supported language runtimes, bind them to triggers (HTTP, timers, queues, event hubs, and other Azure sources), and let the platform scale instances automatically per request volume. The Consumption, Premium, and App Service plans define cold-start, VNET, and pricing behavior.
Azure
Service information
Shortname: Functions
Huawei equivalent shortnames: FunctionGraph
Keywords: serverless, function, event
Differences vs Huawei
Azure Functions and Huawei FunctionGraph share the FaaS model of event-triggered, autoscaling code, but their service boundaries differ. Azure Functions is tightly coupled to the Azure event mesh (Event Grid, Service Bus, Storage, Cosmos DB change feed) with declarative bindings that auto-wire inputs and outputs; FunctionGraph integrates with Huawei sources (OBS, DIS, SMN, APIG, LTS, AOM) and exposes trigger events per runtime rather than a universal binding model. FunctionGraph runs on Huawei-managed infrastructure with snapshot-based cold starts, while Azure spans Premium/App Service plans that give pre-warmed instances and VNET integration, a control-plane distinction FunctionGraph does not mirror one-for-one.
APIs and data model diverge in practice. Azure uses the Functions runtime with host.json, function.json bindings, and the Azure Functions programming model; FunctionGraph uses its own SDKs per runtime (Node.js, Python, Java, Go, C#, PHP, Cangjie, and Custom), an event/context/response signature, and ZIP/JAR or container-image deployment. Runtime coverage is overlapping but not identical, and some runtimes or versions (for example Java 21, .NET 8) are restricted to specific regions on Huawei, so language and version parity must be validated function-by-function before assuming compatibility.
Scaling, high availability, and operational responsibility differ. Azure Functions scales per-trigger with configurable limits and Premium pre-warm instances; FunctionGraph scales instances automatically within documented concurrency caps and relies on LTS for logs and AOM for metrics, with a deprecation cadence for older runtimes. Both bill per request plus execution duration, but Azure's plan choice (Consumption vs. Premium/App Service) shifts cost and cold-start behavior, whereas FunctionGraph's pricing is request and millisecond-duration based with a free monthly tier. Operations, monitoring, and regional availability are not equivalent and must be re-evaluated per workload.
Migration to Huawei
Start with an assessment that maps each Azure function to FunctionGraph equivalence, not identity. Inventory runtimes and versions, triggers, bindings, dependencies, and plan-specific features (Premium pre-warm, VNET, private endpoints). Confirm FunctionGraph supports the language and version in the target region; note that some runtimes are region-restricted and that Azure bindings (Event Grid, Service Bus, Cosmos DB) have no one-to-one trigger, requiring rework onto Huawei sources such as OBS, DIS, SMN, or APIG. Treat FunctionGraph as the core FaaS capability and add APIG, SMN, OBS, and LTS to cover integration, routing, and observability gaps.
Migrate code and configuration iteratively. Rewrite each function's entry point to FunctionGraph's event/context/response signature and repackage as inline code, ZIP/JAR, OBS-hosted archive, or a container image where needed. Replace Azure bindings with explicit client calls to Huawei services (OBS SDK, DIS consumer, SMN publisher, AOM/LTS logging) and re-create triggers as FunctionGraph trigger events or APIG-fronted HTTP endpoints. Move environment variables, secrets, and connection strings to FunctionGraph environment configuration or a Huawei secrets store, and adjust IAM so function execution roles map to Huawei agency/IAM policies scoped to the sink and source services.
Validate and cutover with parity testing rather than assumed equivalence. Rehearse cold-start latency, concurrency limits, timeout, and retry behavior under load because FunctionGraph's autoscaling caps and cold-start characteristics differ from Azure's plan-based behavior. Replay representative event streams, confirm idempotency and error handling, and compare logs in LTS and metrics in AOM against Azure Monitor/Application Insights. Promote function-by-function with a shadow or blue-green pattern through APIG so you can roll back per trigger.
Close gaps and recalculate cost before production. Account for unsupported or region-restricted runtimes, absent bindings, and differing VNET and private networking options; workloads needing long execution, persistent connections, or Premium-class pre-warming may fit CCE or ECS better than FunctionGraph. Recompute TCO using request volume, execution duration in milliseconds, memory configuration, and egress or interconnect traffic, since FunctionGraph's request-and-duration billing with a free tier does not map linearly from Azure Consumption or Premium pricing.
Huawei Cloud
Huawei equivalent service
Shortname: FunctionGraph
General function: Serverless Functions
Huawei serverless compute for event-driven code execution.
Keywords: serverless, function, event