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

Amazon API Gateway

API Gateway is a service that helps you to build RESTful APIs. You need to configure your resources, set the supported HTTP verbs and specify what will handle the requests. You can use it to redirect requests to EC2 instances (virtual machines) or external web servers, but what we'll explore here is to use it to trigger Lambda functions.

Besides, API Gateway has other interesting features. For example, after creating your API endpoints, you can use API Gateway to automatically generate a client SDK for many different platforms, where you can easily test and distribute it to be used by third-party developers. Also, you can create third-party API keys to access your content with fine-grained access permissions, request quota limits, and throttling.

In our architecture, API Gateway will act as a thin layer that exists only to expose our Lambda functions to the world. Additionally, you can set security controls to allow only authenticated users to trigger your code. We are going to use this service in the next chapter, where we'll talk about how to configure our endpoints using the Serverless Framework, we will see more in Chapter 6, Developing the Backend, while building our backend code, and lastly, in Chapter 8, Securing the Serverless Application, when our security measures will be explained.

主站蜘蛛池模板: 郴州市| 龙岩市| 通江县| 保山市| 红桥区| 交城县| 昌平区| 阜康市| 鄂温| 高台县| 什邡市| 湖州市| 天气| 丰顺县| 新竹县| 西畴县| 张家川| 安达市| 花莲市| 三门县| 林周县| 平遥县| 崇明县| 玉林市| 桓仁| 房山区| 维西| 花莲市| 南宫市| 电白县| 剑川县| 收藏| 东至县| 尚志市| 淮北市| 蕲春县| 平南县| 栖霞市| 三门峡市| 西城区| 自治县|