You are on page 1of 6

Being Zero Pvt Ltd

http://beingzero.in
https://fb.me/being0

API GATEWAYS
API Gateway is an individual service which acts as an ENTRY POINT to all APIs of our
application/service. For easy understanding you can treat it as Load Balancer of APIs.

This is how we typically design our services with APIs. Most APIs require authentication
validation, authorization validation and Security Validations (certs, dos attacks, rate limiting etc).

An API Gateway makes our life easier by providing single purpose focused service that can take
care of all common requirements of APIs Security, Authentication, Authorization.
Being Zero Pvt Ltd
http://beingzero.in
https://fb.me/being0

API Gateway always provides us a benefit of decoupling API from corresponding services that
provide implementation for the API. Later on, we can choose to change our app architecture to
Microservices.

API Gateways can also make smart routing decisions based on content type, geolocations, service-
type based routings etc. And can provide a layer of caching for quick results serving. It is useful
in scenarios where we provide most trending Videos and the results are calculated in hourly
window. So once response is generated, we can set TTL of 1 hour before making next backend call
for new content.
Being Zero Pvt Ltd
http://beingzero.in
https://fb.me/being0

API Gateways provide us a way to implement Monitoring solutions for API that helps us analyze
scale, volume, usage statistics per API etc.

Amazon API Gateway Service (Big Picture) shared below. Here Amazon API Gateway Developer
Guide to dig further into details of API Gateway Service.

API Gateway also makes it easy for us to build Workflow-APIs (combination of existing APIs) for
faster response (as we can make parallel calls to backend).
Being Zero Pvt Ltd
http://beingzero.in
https://fb.me/being0

It provides us a placeholder for extension, where futuristic routing decisions based on devices can
be added.

This can help us scale any backend service horizontally by just making a config change in API
Gateway. This also allows us to deploy some of our experimental implementations (new
implementations of same service) in FLIGHT mode (where some percentage of traffic uses that
feature).
Being Zero Pvt Ltd
http://beingzero.in
https://fb.me/being0

If We want to charge for API calls for any service (Email Sending Service, Payment Service) we can
build that layer into API Gateway.

There are Existing Products available that can be used as API Gateway.
Being Zero Pvt Ltd
http://beingzero.in
https://fb.me/being0

References
1. API Gateway - Video
2. API Gateway Features - Video

JOIN FB GROUP FOR UPDATES: https://www.facebook.com/groups/beingzero

You might also like