You are browsing a read-only backup copy of Wikitech. The live site can be found at

API Gateway

From Wikitech-static
Revision as of 14:59, 15 September 2020 by imported>Hnowlan (Bare bones info about the service.)
Jump to navigation Jump to search

The API Gateway is a service that runs in Kubernetes based on Envoy. The service implements many features central to serving the unified API and the API portal.


Rate limiting

The API Gateway applies rate limits to clients based upon the JWT provided (or not) by the client. During beta unauthenticated clients are currently limited to 500 requests an hour, and authenticated clients that pass a valid JWT are limited to 5000 requests. These values are entirely temporary and will be changed as the platform moves towards general release. Clients issue JWTs by requesting OAuth 2.0 clients on Meta and in future, on the API Portal.


The API Gateway maps API URIs passed to the Gateway's hostname ( to the relevant APIs understood by the application servers. For example, is mapped to by the Gateway's configuration language. As of September 2020, it is required to use a relatively complex rewriting method using Lua and multiple definitions of URL patterns seen in the values.yaml file, but this will be fixed in Envoy 1.16.0.





There is a Grafana dashboard available that monitors many features of the API Gateway.