官术网_书友最值得收藏!

API gateway

One of the things that I mentioned about FaaS earlier is the API Gateway. An API Gateway is a layer that stands in front of backend HTTP services or other resources, such as FaaS, and decides where to route the HTTP request based on the route configuration defined in the API gateway solution. In the context of FaaS, the API Gateway maps the incoming HTTP request parameters to the inputs to the FaaS function. The API gateway then transforms the response that it receives from the function and converts it into an HTTP response and returns that HTTP response back to the caller of the API gateway. 

Each cloud provider has an offering in this space:

  • AWS has an offering called API gateway
  • Microsoft Azure has an offering called Azure API management
  • GCP has an offering called Cloud Endpoints

The working of the Amazon API gateway is as shown in the following figure:

How the Amazon API Gateway works

API gateways provide additional capabilities along with routing the requests, including:

  • Authentication
  • Throttling
  • Caching
  • Input validation
  • Response code mapping
  • Metrics and logging

The best use case for FaaS + API gateway is the creation of a feature-rich HTTP-based microservice with scaling, monitoring, provision, and management all taken care of by the provider in a true serverless computing environment.

主站蜘蛛池模板: 曲阜市| 七台河市| 宁津县| 个旧市| 盈江县| 六枝特区| 昭觉县| 江西省| 望都县| 永嘉县| 湾仔区| 陆丰市| 客服| 田阳县| 新巴尔虎左旗| 芷江| 罗山县| 额敏县| 锡林郭勒盟| 安宁市| 勐海县| 香格里拉县| 马公市| 阿勒泰市| 郎溪县| 兴业县| 西充县| 商南县| 湾仔区| 永仁县| 兴隆县| 南郑县| 六枝特区| 亚东县| 平武县| 沙坪坝区| 遂宁市| 庆安县| 龙陵县| 洪泽县| 固阳县|