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

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.

主站蜘蛛池模板: 石柱| 璧山县| 肇源县| 长泰县| 金塔县| 濮阳县| 乌鲁木齐县| 合江县| 安多县| 广平县| 淮北市| 确山县| 嵩明县| 汽车| 万全县| 牡丹江市| 武胜县| 阿拉善右旗| 鄄城县| 陆河县| 衡阳县| 昌宁县| 台前县| 广河县| 格尔木市| 尼玛县| 金门县| 龙岩市| 津南区| 堆龙德庆县| 嘉黎县| 南部县| 三明市| 贵德县| 霍邱县| 舒兰市| 镇雄县| 江阴市| 二连浩特市| 吐鲁番市| 东方市|