API Management
Amazon API Gateway
Amazon API Gateway is a fully managed service for creating, publishing, securing, monitoring, and throttling REST, HTTP, and WebSocket APIs at any scale. It acts as the front door for backend integrations to Lambda, HTTP endpoints, VPC links, and other AWS services, handling authorizers, request validation, stage-based deployment, usage plans, and inline request/response transformations on a serverless, pay-per-request operating model.
AWS
Service information
Shortname: API Gateway
Huawei equivalent shortnames: APIG
Keywords: api, gateway, management
Differences vs Huawei
APIG is a single Huawei service that fuses three gateway roles — security gateway (WAF-like access control and audit), traffic gateway (cross-domain forwarding, routing, throttling, circuit breaking, backend signing), and microservice gateway (service discovery, gray release, gRPC) — whereas AWS API Gateway is purely an inbound API front door, leaving microservice and east-west governance to separate services. APIG exposes these via a dedicated gateway instance model with selectable specifications, while AWS API Gateway is a serverless multi-tenant endpoint with implicit scaling and no provisioned instance sizing.
Integration and authentication boundaries differ materially. APIG integrates natively with CCE, Nacos, K8s service discovery, FunctionGraph, and ROMA Connect, and supports dedicated gateways with WAF interconnection and cross-VPC backend exposure as documented best practices. AWS API Gateway binds to Lambda, VPC Link, IAM, Cognito, and custom Lambda authorizers, with usage plans and API keys for consumer throttling. Authorizer semantics, stage/release lifecycle, and OpenAPI import round-tripping are not guaranteed identical, so policy and request-mapping constructs must be re-authored rather than ported verbatim.
Scaling, HA, and pricing models diverge. AWS bills by API call volume plus optional caching and edge/regional options, auto-scales transparently, and offers WebSocket support as a distinct protocol class. APIG quotes per-gateway throughput tiers (up to tens of thousands TPS on a single gateway), is billed on gateway instance specification and traffic, and treats WebSocket-style sessions primarily through custom backends rather than a first-class WebSocket API type. Validate regional availability, instance quotas, and protocol support per Huawei region before assuming parity.
Migration to Huawei
Begin with a workload inventory by API type: separate REST/HTTP integrations, WebSocket-long-lived sessions, and Lambda-based orchestration. Map each AWS stage, authorizer (IAM, Cognito, custom Lambda), usage plan, and VPC Link backend to Huawei equivalents in APIG (API groups, environments, app authentication, custom authorizers via FunctionGraph, and cross-VPC/dedicated gateway backends). WebSocket workloads have no direct APIG primitive, so plan a fallback (e.g., a custom backend behind APIG, or DCS/ECS-hosted signaling) and treat them as a redesign rather than a lift-and-shift. Use ROMA Connect only where the source workload is integration-centric rather than pure API publishing.
Re-create API contracts using APIG's OpenAPI one-click import to reduce hand transcription, but re-author all policy, request/response mapping, throttling tiers, and authentication rather than copying AWS mapping templates verbatim, since semantics differ. Bind backends to CCE, ECS, FunctionGraph, or cross-VPC services per APIG best practices (e.g., exposing CCE workloads, cross-VPC backend services), and front production gateways with WAF on a dedicated gateway. Reproduce stage and release gating using APIG environments (RELEASE and non-RELEASE) plus the publishing workflow; do not assume AWS stage variables have an equivalent construct.
Validate per-API correctness, latency under load, throttling behavior by app/user/IP, and circuit breaking before cutover. Replay representative traffic against the APIG endpoint, compare against AWS baselines for p99 latency and error rates, and confirm authorizer, signature, and CORS behavior. Confirm regional availability and instance-specification quotas in the target Huawei region, and size the dedicated gateway to your peak TPS rather than relying on implicit auto-scaling. Plan a DNS-based, staged cutover with a rollback to the AWS stage for at least one evaluation cycle.
Pricing and TCO differences must be recomputed, not extrapolated. AWS API Gateway charges per-million requests plus optional caching and edge/regional variants; APIG typically charges by gateway instance specification and traffic volume, with cost driven by the chosen throughput tier rather than pure request count. Rebuild TCO with peak load, sustained request volume, cross-region/interconnect traffic, and any WAF and FunctionGraph custom-authorizer usage. Document the gaps — first-class WebSocket APIs, AWS service integrations (Lambda/VPC Link), and AWS-side authorizer ecosystem — as explicit redesign items rather than assuming feature parity.
Huawei Cloud
Huawei equivalent service
Shortname: APIG
General function: API Management
API lifecycle management and traffic control service.
Keywords: api, gateway, management