What is the docker API gateway option?

I created several RESTful microservices and documented them. Now I want to have a web interface for them and the ability to create users and grant them permissions to use some of the APIs.

I know that I need some kind of API gateway. My first thought was that I could always do this with brutforce: create some kind of django application that will serve the user interface and proxy server for all API requests manually, but it seems very boring. Maybe there are alternatives? I am ready for Tyk, but I can not find any information about the possibility of adding users and granting them permissions.

Perhaps I could create an application that will serve as an API gateway and automate proxying requests by writing code that will simulate it. So, for example, I basically need to map external URLs to actual api addresses and some kind of authorization logic. Maybe there is something like that?

+8
api docker microservices gateway tyk
source share
2 answers

I was looking for something similar, including speed limit support, user interface console, etc. It comes down to a few freemium tools, for example:

and several open source versions:

I decided to choose tyk, as it has a good user interface console and solid documents. They were all mentioned in Quora, which is nice when you want to go shopping :)

+10
source share

If you like to get your hands dirty, you can easily implement your own simplified API. I believe that this approach fits perfectly into the microservice paradigm - it implements a simple service with limited functionality that does only one thing, but does it well.

I wrote a tutorial on this topic (implementing a simple API gateway for Dockerized microservices with Node.js). My example is about 100 lines of JavaScript code, it uses node-docker-monitor to listen for Docker events and http-proxy to handle HTTP requests from clients.

https://memz.co/api-gateway-microservices-docker-node-js/

or alternative solution with SkyDNS and Nginx

https://memz.co/reverse-proxy-nginx-docker-microservices/

+2
source share

All Articles