使用码头的API网关有哪些选择? [英] What are the option to API gateway with docker?

查看:226
本文介绍了使用码头的API网关有哪些选择?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了几个RESTful微服务器并对它们进行了对接。现在我想为他们提供基于网络的UI,并且能够创建用户并授予他们使用某些API的权限。



我知道我需要某种API网关。我的第一个想法是,我总是可以这样做:创建一些django应用程序,它将为用户界面提供服务,并通过手动代理所有API请求,但这似乎非常无聊。也许有一些替代品?我已经准备好了Tyk,但是找不到有关添加用户并授予他们权限的信息。



我可能会创建一个可以提供服务的应用程序作为API网关,并通过编写一些可以建模请求的代码来自动代理请求。所以例如我基本上需要一个外部urls到实际api urls和一些授权逻辑之间的映射。也许已经有这样的东西?

解决方案

我正在寻找类似的东西,包括支持限速,UI控制台等它归结为几种免费工具,如:





和一些开源的:





我已经决定了tyk,因为它有一个很好的UI控制台和固体文档。所有这些都被提到了Quora,当你想去购物时这是很好的:)


I've created several RESTful microservices and dockerized them. Now I want to have a web-based UI for them and the ability to create users and grant permissions to them to use some of the APIs.

I know that I need some kind of API gateway. My first thought was that I always could do that bruteforce way: create some django app that would serve UI and proxy all request to APIs by hand, but this seems very dull. Maybe there are some alternatives? I've ready about Tyk, but can't find any information about the ability to add users and grant permissions to them.

I probably could create an application that would serve as API gateway and automate proxying of requests by writing some code that would model that. So for example I basically need a mapping between external urls to actual api urls and some authorization logic. Maybe there are already something like that?

解决方案

I was looking for something similar, including support for rate limiting, UI console, etc. It boils down to a few freemium tools like:

and a few open source ones:

I've decided on tyk since it has a nice UI console and solid docs. All of them were mentioned on Quora, which is nice when you want to go shopping :)

这篇关于使用码头的API网关有哪些选择?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆