That is API GATEWAY
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | Vậy tại sao chúng ta lại nói nó là cánh cổng thần kì. **API-GateWay** là một Interface mà nó nằm trước các service back-end khác. - Nhiệm vụ chính là **router**. - Đi cùng với nó là các lựa chọn đa dạng khác như : Multiple Back-ends ( Microservices ) Service Discovery Circuit breaking Authentication and Authorization Rate limiting Logging and tracing Retry logic.......... - Đã thế lại còn nhiều open source như : Kong Gateway Apache APISIX Tyk Goku WSO2 KrakenD Zuul |
It sounds like a bit of a lot of functions and conveniences, but life is not as expected and there is nothing entirely good. One major downside is that if you use only one GATEWAY API for your system what happens if your API port is =))). Of course, the entire service behind this magical portal will also not be used and the system code to practice hands =)) So to no longer be the only one we will create a cluster (cluster) API port has extendable behind the hardware load balancer.
We can define two types of API Gateway as follows.
- 12API Enterprise
- 12API Microservices
Microservices API as we still use normally. API Enterprise is mainly used for 3rd party APIs. Use inside your ecosystem where API Gateway is visible only to your internal customers. Use CI / CD with deployment types like Canary, Shadow, Blue-Green, etc.