Usar extensões de serviço para computação de borda
Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
É possível usar as extensões de serviço
para executar seu próprio código WebAssembly (Wasm) em um
ambiente de computação totalmente sem servidor e gerenciado pelo Google. Nesta página, descrevemos a extensibilidade usando extensões de serviço.
Sobre as extensões de borda das extensões de serviço para o Cloud CDN
Você cria plug-ins usando Wasm e a ABI Proxy-Wasm.
A ABI do Proxy-Wasm oferece suporte a Rust, C++ e Go.
Os plug-ins de extensões de serviço
são executados em uma infraestrutura totalmente sem servidor gerenciada pelo Google. Eles são executados perto do plano de dados, e a otimização de latência é gerenciada.
Os plug-ins das extensões de serviço são destinados a casos de uso leves
com limites rígidos de CPU e memória. Você anexa um
plug-in de extensões de serviço a um balanceador de carga de aplicativo externo global
por uma extensão de borda.
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2025-08-11 UTC."],[],[],null,["# Use Service Extensions for edge compute\n\n| **Preview**\n|\n|\n| This product or feature is subject to the \"Pre-GA Offerings Terms\" in the General Service Terms section\n| of the [Service Specific Terms](/terms/service-terms#1).\n|\n| Pre-GA products and features are available \"as is\" and might have limited support.\n|\n| For more information, see the\n| [launch stage descriptions](/products#product-launch-stages).\n\nYou can use [Service Extensions](/service-extensions/docs/overview)\nto run your own [WebAssembly (Wasm)](https://webassembly.org/) code in a\nfully serverless, Google-managed compute environment. This page describes\nextensibility by using Service Extensions.\n\nAbout Service Extensions edge extensions for Cloud CDN\n------------------------------------------------------\n\nYou build plugins using Wasm and the [Proxy-Wasm ABI](https://github.com/proxy-wasm).\nThe Proxy-Wasm ABI offers support for Rust, C++, and Go.\n[Service Extensions plugins](/service-extensions/docs/plugins-overview)\nrun on a fully serverless, Google-managed infrastructure. They run close to the\ndata plane, and latency optimization is managed.\nService Extensions plugins are intended for lightweight use\ncases with tight limits on CPU and memory. You attach a\nService Extensions plugin to a global external Application Load Balancer\nthrough an edge extension.\n\nFor more information, see\n[How edge extensions work](/service-extensions/docs/lb-extensions-overview#edge-extensions).\n\nCommon use cases\n----------------\n\nUse Service Extensions plugins with global external Application Load Balancers in\nthe following sample scenarios:\n\n**Custom traffic steering**\n: Manipulate request headers to influence backend service selection.\n\n**Cache optimization**\n: Influence which content is served from a Cloud CDN cache.\n\n**Exception handling**\n: Redirect clients to a custom error page for certain response classes.\n\n**Custom logging**\n: Log user-defined headers or custom data into Cloud Logging.\n\n**Header addition**\n: Create new headers relevant for your applications or specific customers.\n: Insert new headers for request.\n\n**Header manipulation**\n: Rewrite existing request headers or override client headers on their way\n to the backend.\n\n**Security**\n: Write custom security policies based on client requests and make enforcement\n decisions within your plugin.\n\nGet started\n-----------\n\n1. [Create a plugin](/service-extensions/docs/create-plugin)\n2. [Configure an edge extension](/service-extensions/docs/configure-edge-extensions)\n\nWhat's next\n-----------\n\n- Learn more about [Service Extensions](/service-extensions/docs/overview) concepts.\n- View Rust, Go, and C++ plugin examples and testing tools in the [Service Extensions GitHub repository for plugins](https://github.com/GoogleCloudPlatform/service-extensions/tree/main/plugins#docs).\n- Learn how to [prepare and upload the files required](/service-extensions/docs/access-control) to create plugins by using Service Extensions.\n- Learn how to [create a plugin](/service-extensions/docs/create-plugin).\n- Learn how to [configure an edge extension](/service-extensions/docs/configure-edge-extensions)."]]