Introduction to API Gateways
API Gateways:
- Authenticattion, authorization and security: Microservices need to be auth when called each other
- Rate Limits: For specific client we would allow only certain number of calls per hour or per day
- Fault Tolearation: Means should give default response if perticular service is not up and running
- Service Aggregation: suppose there is external consumer who wants to call 15 different services is part of one process than its better to aggregate those 15 services and provide to the consumer
These are the common feature across all the microservices,and these feature are implemented at the level of API Gateways
Instead of allowing microservice to call each other directly , we would make all the calls go through a API Gateway
Api Gateway will take care of providing common feature like authentication,
- making sure the all services are logged
- making sure the rate limit are there too,
- making sure that the services are fault tolerant
- making sure the aggregation also provided by gateway as feature
As all calls get routed through the api gateways, api gatewasys also serve as a greate place for debugging as well as well as doing analytics
Comments
Post a Comment