Coding-996

What exactly is Kong?

Kong is one of the core technologies used by Mashape to power API request from developers.

Why do I need an API gateway?

Under the micro-service architecture, services are dismantled in a very fragmented manner, which reduces the coupling and makes the unified management of services more difficult. As shown on the left of the figure above, under the old service governance system, authentication, current limiting, logging, monitoring and other general functions need to be implemented separately in each service, which makes the system maintainer do not have a global view to manage these functions. API gateway is dedicated to solve the problem of microservice nanotubes, which are common functions, and on this basis, improve the scalability of the system. As shown in the right figure, the combination of microservices and API gateways can make the service itself more focused on its own domain and isolate service invokers and service providers.

Why Kong?

Spring Cloud players must have heard of Zuul, a routing component that includes frameworks such as Zuul2 and Spring cloud Gateway, and is well known in China. Yes, I call these component Or frameworks, and Kong is a better word for product. Here we can make a simple comparison between Zuul and Kong.
For example, if you choose to use Zuul, when you need to add current-limiting functions to your application, because Zuul only provides basic routing functions, developers need to develop Zuul Filter by themselves. You may not find it troublesome to develop a function, but if you put more demands on Zuul on this basis, it is regrettable that Zuul users need to take on these complexities on their own. For Kong, the current limiting function is a plug-in, which can be used out of the box with simple configuration.

Features

It is often described as a “drop-in replacement for expensive proprietary API management systems.”

The rough idea behind Kong is to give developers a centralized management layer for microservices and APIs. Kong gives developers a centralized  dispatcher they can rely on to talk to the microservices that power  their applications and APIs, which can either be public or private.

Kong allows developers to manage authentication, data  encryption, logging, rate limiting and other standard features they  would expect from a basic API management system. All of this is powered by a  straightforward RESTful API, and the platform itself is built on top of  the NGINX proxy server and the Apache Cassandra database management system.

The Kong architecture centers around plug-ins. NGINX  already offers a plug-in for enabling live monitoring of NGINX Plus  instances that run Kong.