Extend Service Extension 入門
Overview
Extend Service Extension lets you build and host custom services on AGS. These services expose RESTful endpoints your game can call — for example, to calculate player rankings or fetch data from external sources.
An Extend Service Extension app is a RESTful web service built on a gRPC service and the gRPC Gateway.
In this stack setup:
- Endpoints and their required authorizations are defined as gRPC methods in Protobuf.
- Endpoint handlers are implemented in the gRPC service.
- The gRPC Gateway automatically exposes the gRPC service as a RESTful web service, including generating the corresponding OpenAPI specification.
Benefits
-
Flexibility: Build features AGS doesn't offer out of the box, such as custom logic for player rankings, rules for progression systems, or integration with external data sources.
-
Managed hosting: AGS handles deployment, scaling, and monitoring of your custom services through the Admin Portal.
-
Simple integration: The gRPC Gateway generates a RESTful API and OpenAPI spec from your service definition automatically.
-
Fast iteration: Deploy and redeploy changes to your service at any time from the Admin Portal.