In this chapter, we started with the basics of an API gateway. An API gateway tries to do a few things; it acts as a proxy for our API. By being a proxy, it forwards requests to the multiple APIs from different domains. In that process of forwarding, a gateway can block requests, rate limit them, and also transform requests/responses.
Kong is a good open-source API gateway available for the Linux platform. It has many features such as authentication, logging, and rate limiting. We saw how to install Kong, a Kong database, and our REST service inside the Docker containers. We used Docker instead of host machine because containers can be destroyed and created at will. It gives less chance for screwing up our host system. After learning about the installation, we learned that Kong has two types of REST API. One is the admin API, and the other is the app API. The admin API...