Skip to main content
Cloud / Google Cloud / Products / Service Extensions - Custom Code in the Network Data Path

Service Extensions - Custom Code in the Network Data Path

Service Extensions inserts custom code into the data path of Cloud Load Balancing, Media CDN, and Secure Web Proxy, as plugins or callouts.

Networking
Pricing Model Billed per invocation: plugins on Cloud Load Balancing are free up to 2,000,000 invocations per month per account, then USD 0.10 per 1,000,000 invocations; callouts cost USD 0.10 per 1,000,000 invocations (per the official pricing page)
Availability For supported Application Load Balancers as well as Media CDN and Secure Web Proxy
Data Sovereignty As published by the provider / see official documentation
Reliability As published by the provider / see official documentation SLA

Service Extensions inserts custom code directly into the network data path of Cloud Load Balancing, Media CDN, and Secure Web Proxy, either as a Wasm plugin or as a gRPC callout.

What is Service Extensions?

Service Extensions enables users of Google Cloud products such as Cloud Load Balancing, Media CDN, and Secure Web Proxy to insert custom code directly into the data path. This lets you customize the behavior of these products to meet your business needs.

The data path in these networking products can be visualized as a pipeline of data processing stages. Service Extensions lets you insert custom logic into one or more of these stages, through plugins or through callouts.

Core Features

  • Plugins: Custom code inline in the data path, built with WebAssembly (Wasm) and the Proxy-Wasm ABI, running as Wasm modules on Google-managed sandbox infrastructure
  • Callouts: Envoy gRPC calls from Cloud Load Balancing to Google services or user-managed services, running as general-purpose gRPC servers
  • Extension types: Callout, authorization, route, and traffic extensions
  • Cloud Load Balancing extensions: Customization of request and response processing paths for supported Application Load Balancers
  • CEL matchers: Selecting which requests an extension applies to, using the CEL matcher language documented in the reference

Typical Use Cases

Custom error pages

Redirecting clients to a custom error page for certain response classes, without changing the backend application.

Custom logging

Logging user-defined headers or custom data into Cloud Logging directly from the data path.

Header addition

Creating new headers relevant for your applications or for specific customers, on requests and responses.

Header manipulation

Rewriting existing request and response headers, for example to normalize them or to strip internal information.

Benefits

  • Two execution models: Plugins with no infrastructure of your own, callouts with full freedom over runtime and language
  • Free entry allowance: Up to 2,000,000 plugin invocations per month per account at no charge
  • Close to the data plane: Plugins run on Google-managed infrastructure with latency optimization handled by Google
  • Reuse of existing software: Callouts can integrate existing services instead of reimplementing logic

Integration with innFactory

As a certified Google Cloud partner, innFactory supports you with Service Extensions: choosing between plugins and callouts, developing the extensions, and integrating them into your existing load balancing architecture.

Contact us for a consultation on Service Extensions.

Available Tiers & Options

Callouts

Strengths
  • No runtime restrictions, existing software can be reused
  • Run on your own compute VMs, GKE Pods on GKE Multi-Cloud, or on-premises
  • Envoy gRPC calls made from Cloud Load Balancing
Considerations
  • You confirm the scalability and availability of your callout service
  • Additional data transfer charges may apply for cross-region traffic and for the compute at the other end

Typical Use Cases

Redirecting clients to a custom error page for certain response classes
Logging user-defined headers or custom data into Cloud Logging
Adding new request and response headers
Rewriting existing request and response headers

Technical Specifications

Callout runtime gRPC servers on user-managed compute VMs, GKE Pods on GKE Multi-Cloud, or on-premises environments
Extension types Callout extensions, authorization extensions, route extensions, traffic extensions, and plugins
Matcher CEL matcher language documented in the reference
Plugin runtime WebAssembly (Wasm) with the Proxy-Wasm ABI on Google-managed sandbox infrastructure
Supported products Cloud Load Balancing, Media CDN, and Secure Web Proxy

Frequently Asked Questions

What is Service Extensions?

Service Extensions enables users of Google Cloud products such as Cloud Load Balancing, Media CDN, and Secure Web Proxy to insert custom code directly into the data path, so they can customize the behavior of these products to meet their business needs.

What is the difference between plugins and callouts?

Plugins let you insert custom code inline in the networking data path. You build them using WebAssembly and the Proxy-Wasm ABI, and they run as Wasm modules on Google-managed sandbox infrastructure with restricted capability and strict runtime requirements. Callouts let Cloud Load Balancing make Envoy gRPC calls to Google services and user-managed services during data processing; they have no runtime restrictions but run on your own infrastructure.

Which types of extensions exist?

The documentation lists callout extensions, authorization extensions, route extensions, and traffic extensions, as well as plugins.

What does Service Extensions cost?

For plugins on Cloud Load Balancing, the official pricing page lists 0 to 2,000,000 invocations per month per account as free, and USD 0.10 per 1,000,000 invocations above that. Callouts on Cloud Load Balancing cost USD 0.10 per 1,000,000 invocations. An invocation is an individual callback or callout; a single HTTP request may trigger several invocations depending on the configuration.

What are plugins typically used for?

The documentation gives sample scenarios including exception handling with a redirect to a custom error page, custom logging of user-defined headers or data into Cloud Logging, adding new request and response headers, and rewriting existing headers.

Note: All product information on this page has been compiled with care, but is provided without guarantee and may be outdated or incomplete. Cloud services evolve rapidly — features, pricing, SLAs, and availability change frequently. Authoritative and up-to-date information can only be found on the official product page of Google Cloud (official documentation). This page does not represent an offer by Google Cloud.

Google Cloud Partner

innFactory is a certified Google Cloud Partner. We provide expert consulting, implementation, and managed services.

Google Cloud Partner

Similar Products from Other Clouds

Other cloud providers offer comparable services in this category. As a multi-cloud partner, we help you choose the right solution.

Azure

Application Gateway for Containers - Ingress for AKS

Application Gateway for Containers: managed layer 7 load balancing and ingress for Kubernetes workloads with Gateway …

Pricing Billed per the Application Gateway …
SLA per Service Level Agreements for Online Services (see official documentation)
Compare →
AWS

AWS Cloud WAN: Managed Global Wide Area Network

AWS Cloud WAN connects VPCs, data centers, and sites through a centrally managed global network with policy-based …

Pricing Usage-based, see official pricing page
SLA Per provider / see official documentation
Compare →
AWS

AWS Telco Network Builder - Automated Telco Networks

AWS Telco Network Builder (TNB) automates the deployment and lifecycle of telco network functions on AWS using telecom …

Pricing Hourly price per Managed Network …
SLA As stated by the provider; see official documentation
Compare →
Azure

Azure DNS Private Resolver - Hybrid DNS Resolution

Azure DNS Private Resolver: managed DNS resolution between Azure VNets and on-premises, with inbound and outbound …

Pricing Billed per the Azure DNS pricing page
SLA per provider / see official documentation
Compare →
Azure

Azure Enclave - Isolated, Compliant Environments

Azure Enclave (preview): accelerates building and running secure, isolated, compliant cloud environments through …

Pricing Hourly billing per the official pricing …
SLA No SLA - Azure Enclave is provided without a service-level agreement during preview
Compare →
Azure

Azure Peering Service - Optimized Internet Connectivity to Microsoft

Azure Peering Service enhances public connectivity to Microsoft cloud services through partner providers and provides …

Pricing Obtained through a Peering Service …
SLA SLA per vendor / see official documentation
Compare →

56 comparable products found across other clouds.

Ready to start with Service Extensions - Custom Code in the Network Data Path?

Our certified Google Cloud experts help you with architecture, integration, and optimization.

Schedule Consultation