SDET Interview Series : Load Balancer vs API Gateway

Application Load Balancer

  • It automatically distributes incoming traffic to different backend.
  • ALB works on layer 7 of the OSI model.
  • Infrastructure is managed by AWS, which can be horizontally and vertically scaled.
Application Load Balancer
  • AWS Lambda : Compute service that runs your code in response to events and automatically manages the compute resources.
  • Amazon EC2(Elastic Compute Cloud) : Resizable compute capacity in the Cloud.

API Gateway

  • Fully managed and server-less API service from AWS.
  • Infrastructure is managed by AWS, which can be horizontally and vertically scaled.
  • API Gateway basically act as an abstraction layer so that Frontend doesn’t have to worry about the backend micro-service.

Other Important Points :

Load Balancer can also be used along with API Gateway
BFF : Backend For Frontend Architecture

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store