Comparar el proxy de servicios extensible y Cloud Endpoints Frameworks
Organízate con las colecciones
Guarda y clasifica el contenido según tus preferencias.
En esta página se explican las diferencias entre Endpoints Frameworks para el entorno estándar de App Engine y Extensible Service Proxy (ESP), que se usa en Cloud Endpoints para las APIs que usan OpenAPI o gRPC.
Para obtener más información sobre las opciones de Endpoints, consulta Elegir una opción de Endpoints.
Información general
Cloud Endpoints es un sistema de gestión de APIs que te ayuda a proteger, monitorizar, analizar y definir cuotas en tus APIs usando la misma infraestructura que Google utiliza para sus propias APIs. Las funciones de gestión de APIs incluyen la autenticación, las claves de API, la monitorización, el registro y el seguimiento, independientemente de la tecnología utilizada para implementar la API. La función de gestión de APIs se proporciona a través de ESP o mediante los frameworks de Endpoints.
proxy de servicios extensible
En Endpoints para OpenAPI y gRPC, las solicitudes de API se reenvían a través del proxy de servicios extensible, que valida las claves y los tokens de autenticación, y envía señales (métricas y registros) mediante la API Service Control. La separación que proporciona ESP significa que puedes escribir el código de backend de REST o gRPC en cualquier lenguaje y que puedes usar gRPC o cualquier framework que admita la descripción de APIs mediante OpenAPI.
APIs que usan OpenAPI: el backend de la API puede ejecutarse en el entorno flexible de App Engine, Google Kubernetes Engine (GKE), Compute Engine, Kubernetes o en implementaciones locales.
APIs que usan gRPC: el backend de la API puede ejecutarse en GKE, Compute Engine, Kubernetes o en implementaciones locales.
Se envía una solicitud a la siguiente ruta:
Se recibe una solicitud de tu código y se envía al ESP.
ESP envía una solicitud de comprobación a Service Control.
Si has configurado tu API para que requiera una clave de API o autenticación, Service Control comprueba si la solicitud está permitida y envía una respuesta al ESP.
Si no se permite la solicitud, el ESP la rechaza. Si se permite la solicitud, se reenvía al código de backend. De cualquier forma, ESP registra información sobre la solicitud.
En el caso de los backends de API que se ejecutan en el entorno estándar de App Engine, Endpoints Frameworks está disponible para ayudar a los desarrolladores a empezar a ofrecer una API rápidamente. Endpoints Frameworks es un framework web y una alternativa a Python Flask o Java Jersey.
Endpoints Frameworks se integra con la API Service Control, lo que significa que un backend que utilice Endpoints Frameworks no tiene que ejecutarse detrás del proxy de servicio extensible.
Si has habilitado la gestión de APIs, se envía una solicitud a la siguiente ruta:
Se recibe una solicitud a tu código y se envía al módulo de gestión de Endpoints de Endpoints Frameworks.
El módulo de gestión de Endpoints envía una solicitud de comprobación a Service Control.
Si has configurado tu API para que requiera una clave de API o autenticación, Service Control comprueba si la solicitud está permitida y envía una respuesta al módulo Endpoints Management.
Si la solicitud no está permitida, el módulo Endpoints Management la rechaza. Si la solicitud se permite, se reenvía a Endpoints Frameworks. De cualquier forma, el módulo Endpoints Management registra información sobre la solicitud.
Endpoints Frameworks dirige la solicitud al código de backend.
Puedes usar Endpoints Frameworks con o sin la función de gestión de APIs. El uso de Endpoints Frameworks sin la función de gestión de APIs no tiene coste. La funcionalidad de gestión de APIs se cobra según la página de precios de Endpoints.
Endpoints Frameworks solo se admite en servicios que se ejecutan en el entorno estándar de App Engine. En Compute Engine, GKE, el entorno flexible de App Engine u otros entornos, tus servicios deben ejecutarse detrás de ESP.
Si el servicio se ejecuta detrás de ESP, puedes escribir el código de backend en cualquier lenguaje y framework, como Python Flask, Java Jersey o Node.js Express. En estos entornos, no es necesario usar Endpoints Frameworks para gestionar las APIs.
Siguientes pasos
Para obtener información sobre cómo añadir la gestión de APIs, consulta lo siguiente:
[[["Es fácil de entender","easyToUnderstand","thumb-up"],["Me ofreció una solución al problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Es difícil de entender","hardToUnderstand","thumb-down"],["La información o el código de muestra no son correctos","incorrectInformationOrSampleCode","thumb-down"],["Me faltan las muestras o la información que necesito","missingTheInformationSamplesINeed","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-09-11 (UTC)."],[[["\u003cp\u003eCloud Endpoints provides API management features like authentication, monitoring, and logging, either through the Extensible Service Proxy (ESP) or Endpoints Frameworks.\u003c/p\u003e\n"],["\u003cp\u003eThe Extensible Service Proxy (ESP) handles API requests for OpenAPI and gRPC, allowing backend code to be written in any language and deployed across various environments like GKE, Compute Engine, and on-premises.\u003c/p\u003e\n"],["\u003cp\u003eEndpoints Frameworks is specifically designed for API backends running on the App Engine standard environment, offering a web framework alternative to Flask or Jersey, and integrating directly with the Service Control API.\u003c/p\u003e\n"],["\u003cp\u003eEndpoints Frameworks is the only way to obtain API management features on the App Engine standard environment, and it supports only Python 2.7 and Java 8 runtime environments.\u003c/p\u003e\n"],["\u003cp\u003eAPI management functionality through either ESP or Endpoints Frameworks is charged based on the number of calls per month, while using Endpoints Frameworks without API management is offered at no charge.\u003c/p\u003e\n"]]],[],null,["# Comparing Extensible Service Proxy and Cloud Endpoints Frameworks\n\nThis page explains the differences between Endpoints Frameworks for\nthe App Engine standard environment and the\n[Extensible Service Proxy (ESP)](/endpoints/docs/frameworks/glossary#extensible_service_proxy),\nwhich is used in Cloud Endpoints for APIs using\n[OpenAPI](/endpoints/docs/openapi)\nor\n[gRPC](/endpoints/docs/grpc/about-grpc).\nFor more information about the Endpoints options, see\n[Choosing an Endpoints option](/endpoints/docs/choose-endpoints-option).\n\nOverview\n--------\n\nCloud Endpoints is an API management system that helps you secure, monitor,\nanalyze, and set quotas on your APIs using the same infrastructure Google uses\nfor its own APIs. API management features includes authentication, API keys,\nmonitoring, logging, and tracing independent of the technology used to implement\nthe API. API management functionality is provided through ESP or\nby using the Endpoints Frameworks.\n\nExtensible Service Proxy\n------------------------\n\nIn Endpoints for OpenAPI and gRPC, API requests are relayed\nthrough the Extensible Service Proxy, which validates keys and authentication tokens and\nsends signals (metrics and logs) by using the\n[Service Control](/service-control/overview)\nAPI. The separation provided by ESP means that you can write the\nREST or gRPC backend code in any language, and you can use gRPC or any framework\nthat supports API description using OpenAPI.\n\n- APIs using OpenAPI: The API backend can run on the App Engine flexible\n environment, Google Kubernetes Engine (GKE), Compute Engine, Kubernetes, or\n on-premises deployments.\n\n- APIs using gRPC: The API backend can run on GKE,\n Compute Engine, Kubernetes, or on-premises deployments.\n\nA request is sent on the following path:\n\n1. A request to your code is received and is sent to ESP.\n2. ESP sends a check request to Service Control.\n3. If you configured your API to require an API key or authentication, Service Control checks to see if the request is permitted and sends a response back to ESP.\n4. If the request isn't permitted, ESP rejects the request. If the request is permitted, it is forwarded to your backend code. Either way, ESP logs information about the request.\n\n[Pricing of Endpoints API management](/endpoints/pricing)\ndepends on the number of calls per month.\n\nEndpoints Frameworks\n--------------------\n\nFor API backends running on the App Engine standard environment,\nEndpoints Frameworks is available to help developers quickly get\nstarted serving an API. Endpoints Frameworks is a\n[web framework](https://wikipedia.org/wiki/Web_framework)\nand is an alternative to Python Flask or Java Jersey.\nEndpoints Frameworks integrates with\nthe Service Control API, meaning a backend that uses\nEndpoints Frameworks doesn't need to run behind the Extensible Service Proxy.\n| **Note:** Endpoints Frameworks is the only way to get API management functionality, such as monitoring, logging, and API keys, on the App Engine standard environment. Only the [Python 2.7 and Java 8 runtime environments](/appengine/docs/standard/runtimes) are supported.\n\nIf you have enabled API Management, a request is sent on the following path:\n\n1. A request to your code is received and is sent to the Endpoints Management module within Endpoints Frameworks.\n2. The Endpoints Management module sends a check request to Service Control.\n3. If you configured your API to require an API key or authentication, Service Control checks to see if the request is permitted and sends a response back to the Endpoints Management module.\n4. If the request isn't permitted, the Endpoints Management module rejects the request. If the request is permitted, it is forwarded to Endpoints Frameworks. Either way, the Endpoints Management module logs information about the request.\n5. Endpoints Frameworks routes the request to your backend code.\n\nYou can use Endpoints Frameworks with or without API management\nfunctionality. Use of Endpoints Frameworks without API management\nfunctionality is offered at no charge. API management functionality is charged\naccording to the\n[Endpoints pricing page](/endpoints/pricing).\n\nEndpoints Frameworks is supported only for services running on the\nApp Engine standard environment. On Compute Engine,\nGKE, App Engine flexible environment, or other\nenvironments, your services must run behind ESP.\n\nIf the service is running behind ESP, you can write the backend\ncode in any language and framework, such as Python Flask, Java Jersey, or\nNode.js Express. In such environments, there is no need to use\nEndpoints Frameworks for API management.\n\nWhat's next\n-----------\n\n- For information on adding API management:\n\n - [Java: Adding API management](/endpoints/docs/frameworks/java/adding-api-management)\n - [Python: Adding API management](/endpoints/docs/frameworks/python/adding-api-management)\n- For information on removing API management:\n\n - [Java: Removing API management](/endpoints/docs/frameworks/java/remove-api-management)\n - [Python: Removing API management](/endpoints/docs/frameworks/python/remove-api-management)"]]