Comparison route

Single service comparison

Back to main page

Serverless Functions

Cloud Functions

GCP Cloud Functions is Google Cloud's event-driven, serverless FaaS offering that runs single-purpose functions in response to HTTP calls or cloud events without server provisioning. Code (source or container image) scales automatically from zero and is billed per invocation by request count, millisecond execution time, and provisioned memory. It targets lightweight microservices, automation, and cloud-event wiring with Pub/Sub, Eventarc, and Cloud Storage.

Google Cloud logo

Google Cloud

Service information

Cloud Functions iconCloud Functions

Shortname: GCF

Huawei equivalent shortnames: FunctionGraph

Keywords: serverless, function, event

Differences vs Huawei

GCP Cloud Functions exposes first-gen and second-gen functions over a Google-managed runtime with native Eventarc, Pub/Sub, and Cloud Storage triggers. FunctionGraph's runtime set differs—Node.js, Python, Java, Go, C#, PHP, Cangjie, and custom—and packaging is via inline edit, ZIP/JAR upload, OBS, or container image. Event wiring is Huawei-centric (OBS, DIS, SMN, APIG, LTS), so trigger contracts, signature formats, and SDK bindings are not directly portable; expect handler-level code adaptation rather than lift-and-shift.

Cloud Functions scales instances per traffic with Google-managed concurrency and regional HA; second-gen supports configurable instance concurrency and CPU sharing. FunctionGraph also auto-scales by request count with a per-region concurrent instance cap and snapshot-based cold start, exposing LTS for logs and AOM for metrics. Huawei does not mirror Google's Cloud Build/Artifact Registry pipeline or Cloud Logging/Monitoring semantics, so CI/CD, dashboards, and alerting need re-platforming onto CodeArts, LTS, and AOM.

GCP relies on Eventarc and Cloud Audit Logs for event fan-out plus IAM service-account identity per function, extended by Secret Manager and VPC connectors. FunctionGraph uses agency-based delegation, KMS, and VPC endpoints, and pairs naturally with SMN for notifications and APIG for HTTP ingress. Neither platform offers a one-click re-platform: trigger payloads, idempotency keys, environment variables, and the event envelope schema differ and must be re-mapped per integration before cutover.

Migration to Huawei

Inventory every function: runtime, memory, timeout, concurrency, trigger source, environment variables, secrets, VPC connectivity, and downstream GCP dependencies (Firestore, Cloud Storage, Pub/Sub). Map each to FunctionGraph as the FaaS anchor, pairing APIG for HTTP ingress, SMN for notifications, OBS for object triggers, and DIS for stream triggers. Functions exceeding FunctionGraph's timeout or instance-concurrency caps should be retargeted to CCE or ECS instead; do not assume automatic 1:1 parity across control or data plane.

Re-author handlers to FunctionGraph's event/context/response signature and re-package as ZIP/JAR or container image using supported runtime versions. Replace Google Secret Manager access with Huawei agency/KMS or environment-variable injection, swap GCP SDKs for Huawei OBS/DIS/SMN clients, and reconfigure triggers as APIG, OBS, DIS, SMN, or timer events. No Huawei-provided automated GCP-to-FunctionGraph importer exists; porting is manual or CI-driven via CodeArts pipelines.

Rebuild integration and load tests around FunctionGraph's concurrency limits, cold-start profile, and LTS/AOM observability. Validate idempotency and retry semantics, since DIS and OBS delivery guarantees differ from Cloud Pub/Sub. Cut over with APIG canary routing and dual-run shadow traffic where feasible, then re-baseline latency and error budgets. Watch for absent equivalents such as Google's second-gen instance-concurrency tuning; route long-running or batch workloads to Cloud Run Jobs alternatives like CCE Jobs or ECS.

Cloud Functions bills per invocation plus provisioned-memory time in milliseconds and egress. FunctionGraph bills by request count and execution duration with a free monthly allotment, but HTTP ingress via APIG, VPC traffic, and LTS/AOM logging carry separate charges. Recompute TCO against peak request volume, cold-start frequency, memory sizing, log retention, and cross-region traffic, and budget explicitly for APIG and managed-integration cost lines that GCP folds into networking and platform fees.

Huawei Cloud logo

Huawei Cloud

Huawei equivalent service

FunctionGraph iconFunctionGraph

Shortname: FunctionGraph

General function: Serverless Functions

Huawei serverless compute for event-driven code execution.

Keywords: serverless, function, event