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

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.

主站蜘蛛池模板: 湖南省| 六盘水市| 普兰店市| 康马县| 望江县| 丰镇市| 民丰县| 宜都市| 大同市| 吴忠市| 镇安县| 蕲春县| 江都市| 临夏县| 汤阴县| 沙河市| 咸阳市| 合肥市| 永宁县| 黄骅市| 兖州市| 金昌市| 鄂托克前旗| 昌都县| 嘉荫县| 浠水县| 曲阜市| 达州市| 伊宁市| 红安县| 时尚| 嘉祥县| 龙口市| 永州市| 揭西县| 三亚市| 那曲县| 舟曲县| 泾川县| 万山特区| 博兴县|