Quick thoughts on learning Kong

James Ma
1 min readFeb 5, 2022

Learned Kong today! It’s a free API Gateway for routing traffic to your microservices. The free edition is good enough if you’re comfortable with the command line.

To add a microservice Service URL, invoke the /service endpoint along with a name and the URL. Then map this service to a Route with another /service/{service-name}/route call with the intented host name for redirection. Now, any calls to your Kong endpoint checks for the host name in the headers and redirect to the intended microservice. This guide will explain more in detail: https://lnkd.in/gqzQSShR

If you’d like some GUI, try Kong Manager. The free edition comes with limited features. Set KONG_ADMIN_GUI_URL on port 8002. More instruction in the offical Docker image at: https://hub.docker.com/_/kong

Personally I love the Kong + Keycloak plugin to provide authentication for your end users and enable third party applications to consume your microservices.

I’ll leave Keycloak findings for another day.
Reference: https://konghq.com/

--

--

James Ma
James Ma

Written by James Ma

Tech lead at a digital bank startup in Singapore.

No responses yet