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.

STACKIT

STACKIT Application Load Balancer: Layer 7 Routing

STACKIT Application Load Balancer distributes HTTP/HTTPS traffic via Layer 7 routing by URL path, host, and headers from …

Pricing Pay-per-use (based on usage/throughput)
SLA SLA as published by the provider
Compare →
STACKIT

STACKIT CDN - Content Delivery Network

STACKIT CDN: content delivery with selectable delivery regions, optional origin at STACKIT, WAF, DDoS protection, and …

Pricing Pay-per-use, price per MB of data …
SLA SLA as published by the provider
Compare →
STACKIT

STACKIT DNS - Managed DNS Service

STACKIT DNS: authoritative DNS hosting with an anycast network from German data centers, GDPR-compliant.

Pricing Hourly tiered pricing per zone based on …
SLA SLA as published by the provider
Compare →
STACKIT

STACKIT DNS Resolver - Recursive DNS

STACKIT DNS Resolver: sovereign, recursive DNS resolution for workloads in the STACKIT Cloud with DNSSEC validation and …

Pricing Free, no ordering process
SLA N/A (Beta)
Compare →
STACKIT

STACKIT Network Load Balancer - Layer 4 Load Balancing

STACKIT Network Load Balancer: Layer 4 load balancing (TCP/UDP) from Germany. Health checks, TLS passthrough, …

Pricing Pay-per-use (usage/throughput)
SLA SLA as published by the provider
Compare →
STACKIT

STACKIT Network Security - Firewall & Security Groups

STACKIT Network Security: Security Groups, Unified Firewall, and STACKIT Network Area from Germany. GDPR-compliant.

Pricing Security groups and networking included …
SLA SLA as published by the provider
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