AWS API Gateway

  • API stands for application programming interface.
  • We use API to interact with web applications, and applications use API to communicate with each other.
  • The response of API calls, maybe in Json or XML.
  • API gateway is a service that allows us to publish, maintain, monitor and secure API at any scale.
  • API gateway is like a front door for applications to access data, business, logic, or functionality from your backend services. Example applications running on EC2,Lambda.
  • Supported API types include 
    • restful API, which are optimized for stateless, Serverless workloads.
      • Representational state transfer.
      • Optimized for server-less and web applications.
      • Stateless
      • Supports Json
      • JavaScript object notation
      • Annotation language that uses key value pairs.
      • Example
        • {
        • “id”:”1”,
        • “firstname”:”Gaurav”,
        • “lastname”:”Matta”
        • }
    • Web socket APIs are for real time, two-way state, full communication example chat apps.
  • API gateway provides a single endpoint for all client traffic interacting with the backend of your application.
  • Depending on the type of request, API gateway can do transfer the request to any of the services such as Lambda, EC2 , or Dynamo DB.
    • It allows you to connect to application running on the lambda, EC2 , or elastic beanstalk, and Services like Dynamo, DB, and kinesis.
  • Supports multiple endpoints and targets and send each API to a different target.
  • Supports multiple versions
    • Allows you to maintain multiple versions of your API, so you can have different versions for your development, testing and production environments.
  • API gateway is serverless so it is cost-effective and scalable.
  • API gateway integrates with cloud watch, so API gateway logs, API calls, latencies and error rates to cloud watch.
  • Supports Throttling
    • API gateway helps you to manage traffic with throttling so that backend operations can with stand traffic, spikes and denial of service attacks.
  • API gateway provides an endpoint to your application running in AWS.

Comments

Popular posts from this blog

Effect : Deny vs No Action

AWS Summaries

Infrastructure Setup using Cloud Formation Templates