From 1712e75114f09c707e73c42fea5c9b3e674992c3 Mon Sep 17 00:00:00 2001 From: Aryan Sharma Date: Sun, 23 Oct 2022 23:26:26 +0800 Subject: [PATCH 1/2] Added API Gateway --- docs/aws/aws-api-gatewat.mdx | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/docs/aws/aws-api-gatewat.mdx b/docs/aws/aws-api-gatewat.mdx index 2bc2b7c..8659891 100644 --- a/docs/aws/aws-api-gatewat.mdx +++ b/docs/aws/aws-api-gatewat.mdx @@ -3,3 +3,36 @@ sidebar_position: 6 --- # AWS API Gateway + +Amazon API Gateway is a service that lets developers publish, maintain, monitor and deploy REST, HTTP and WebSocket API's at any scale. Developers can create API's that +access other AWS services, third party apps, and data stored within the AWS environment. As such, a common way to use API Gateway is along with AWS Lambda to serve +serverless routines and Amazon Cognito to perform authentication under a seerverless paradigm. + +## Architecture + +![API Gateway Architecture](https://docs.aws.amazon.com/images/apigateway/latest/developerguide/images/Product-Page-Diagram_Amazon-API-Gateway-How-Works.png) + +Let's discuss the architecture of API Gateway. +API Gateway handles all the work of serving concurrent API requests to thousands of customers including traffic management, access management, and secuirty under the +hood, so that you as a developer, can only focus on writing the logic for your serverless applications, and not worry about concurrency. More specifically, +API Gateway provides a "gateway" to customers to many backend AWS services like EC2 instances running workloads, AWS Lambda running functions, and interfacing +with a Content Distribution Network like Amazon CloudFront. With API Gateway, you as a developer can abstract away user interaction with the backend of your +application by publishing REST/HTTP API's using API Gateway. This architecture allows for major advances in scalability, concurrency, abstraction, security, and +access management and authentication. + +## Accessing API Gateway + +In order to publish API's using API Gateway, you as a developer must also be able to test and develop them in your local environments. For this prupose, AWS provides +multiple access options for developing API's on your local environment: + +1. AWS Management Console: The AWS MAnagement Console is a one-stop solution for interacting with virtually all AWS services. It provides a web interface to publish, +develop, and configure API's under API Gateway for thos emore comfortable with Graphical User Interfaces. +2. AWS CLI: AWS also provides a command line interface for interacting with all of its services, which is meant to b the command line version of the AWS console, +for those who are more comfortable with command line interfaces. +3. AWS SDK's: AWS also provides Software Development Kits in many popular programming languages like Python, Go, and Java which allow users to develop and interact with +AWS services and API Gateway using programming languages. This is particularly important when an AWS service needs to be accessed within some code in a general +purpose programming language codebase. + +Once again, this list is not exhaustive, and for more information about these access options, visit [Accessing AWS Services](https://docs.aws.amazon.com/apigateway/latest/developerguide/welcome.html) + +With this, we hope you have a better understanding of API Gateway and integrating it in a serverless paradigm. From bd40304016d2e1f2e956d9a8e97ebf61cc455f30 Mon Sep 17 00:00:00 2001 From: Aryan Sharma Date: Sun, 23 Oct 2022 23:29:18 +0800 Subject: [PATCH 2/2] Made some fixes --- docs/aws/aws-api-gatewat.mdx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/aws/aws-api-gatewat.mdx b/docs/aws/aws-api-gatewat.mdx index 8659891..59ecc06 100644 --- a/docs/aws/aws-api-gatewat.mdx +++ b/docs/aws/aws-api-gatewat.mdx @@ -6,18 +6,18 @@ sidebar_position: 6 Amazon API Gateway is a service that lets developers publish, maintain, monitor and deploy REST, HTTP and WebSocket API's at any scale. Developers can create API's that access other AWS services, third party apps, and data stored within the AWS environment. As such, a common way to use API Gateway is along with AWS Lambda to serve -serverless routines and Amazon Cognito to perform authentication under a seerverless paradigm. +serverless routines and Amazon Cognito to perform authentication under a serverless paradigm. ## Architecture ![API Gateway Architecture](https://docs.aws.amazon.com/images/apigateway/latest/developerguide/images/Product-Page-Diagram_Amazon-API-Gateway-How-Works.png) Let's discuss the architecture of API Gateway. -API Gateway handles all the work of serving concurrent API requests to thousands of customers including traffic management, access management, and secuirty under the +API Gateway handles all the work of serving concurrent API requests to thousands of customers including traffic management, access management, and security under the hood, so that you as a developer, can only focus on writing the logic for your serverless applications, and not worry about concurrency. More specifically, API Gateway provides a "gateway" to customers to many backend AWS services like EC2 instances running workloads, AWS Lambda running functions, and interfacing with a Content Distribution Network like Amazon CloudFront. With API Gateway, you as a developer can abstract away user interaction with the backend of your -application by publishing REST/HTTP API's using API Gateway. This architecture allows for major advances in scalability, concurrency, abstraction, security, and +application by publishing REST/HTTP API's. This architecture allows for major advances in scalability, concurrency, abstraction, security, and access management and authentication. ## Accessing API Gateway @@ -25,12 +25,12 @@ access management and authentication. In order to publish API's using API Gateway, you as a developer must also be able to test and develop them in your local environments. For this prupose, AWS provides multiple access options for developing API's on your local environment: -1. AWS Management Console: The AWS MAnagement Console is a one-stop solution for interacting with virtually all AWS services. It provides a web interface to publish, -develop, and configure API's under API Gateway for thos emore comfortable with Graphical User Interfaces. -2. AWS CLI: AWS also provides a command line interface for interacting with all of its services, which is meant to b the command line version of the AWS console, +1. AWS Management Console: The AWS Management Console is a one-stop solution for interacting with virtually all AWS services. It provides a web interface to publish, +develop, and configure API's under API Gateway for those more comfortable with Graphical User Interfaces. +2. AWS CLI: AWS also provides a command line interface for interacting with all of its services, which is meant to be the command line version of the AWS console, for those who are more comfortable with command line interfaces. 3. AWS SDK's: AWS also provides Software Development Kits in many popular programming languages like Python, Go, and Java which allow users to develop and interact with -AWS services and API Gateway using programming languages. This is particularly important when an AWS service needs to be accessed within some code in a general +AWS services and API Gateway using programming languages. This is particularly important when an AWS service needs to be accessed within some routine in a general purpose programming language codebase. Once again, this list is not exhaustive, and for more information about these access options, visit [Accessing AWS Services](https://docs.aws.amazon.com/apigateway/latest/developerguide/welcome.html)