Kong v0.8.2 发布
jopen 8年前
<p style="text-align: center;"><img alt="" src="https://simg.open-open.com/show/22cdaab266499458882a505cb199be22.png" /></p> <p>Kong是在客户端和(微)服务间转发API通信的API网关,通过插件扩展功能。Kong有两个主要组件:</p> <ul> <li>Kong Server :基于nginx的服务器,用来接收API请求。</li> <li>Apache Cassandra :用来存储操作数据。</li> </ul> <p>你可以通过增加更多Kong Server机器对Kong服务进行水平扩展,通过前置的负载均衡器向这些机器分发请求。根据文档描述,两个Cassandra节点就足以支撑绝大多数情况,但如果网络非常拥挤,可以考虑适当增加更多节点。</p> <p>对于开源社区来说,Kong 中最诱人的一个特性是可以通过插件扩展已有功能,这些插件在 API 请求响应循环的生命周期中被执行。插件使用 Lua 编写,而且 Kong 还有如下几个基础功能:</p> <ul> <li> HTTP 基本认证</li> <li> 密钥认证</li> <li> CORS( Cross-origin Resource Sharing,跨域资源共享)</li> <li> TCP/UDP</li> <li> 文件日志</li> <li> API 请求限流</li> <li> 请求转发</li> <li> nginx 监控</li> </ul> <p><img alt="" src="https://simg.open-open.com/show/8cc1737a2b0ff1e31dcec627751ec625.png" /> </p> <h2>更新日志</h2> <h3>新增</h3> <ul> <li>Support for a simple slash in <code>request_path</code>. <a href="/misc/goto?guid=4958990866006982767">#1227</a></li> <li>Plugins: <ul> <li>Response Rate Limiting: it now appends usage headers to the upstream requests in the form of<code>X-Ratelimit-Remaining-{limit_name}</code> and introduces a new <code>config.block_on_first_violation</code>property. <a href="/misc/goto?guid=4958990866108296826">#1235</a></li> </ul> </li> </ul> <h3>改进</h3> <ul> <li>Plugins: <ul> <li><strong>Mashape Analytics: The plugin is now called "Galileo", and added support for Galileo v3.<a href="/misc/goto?guid=4958990866198356852">#1159</a></strong></li> </ul> </li> </ul> <h3>bug修复</h3> <ul> <li>Postgres now relies on the <code>search_path</code> configured on the database and its default value <code>$user, public</code>. <a href="/misc/goto?guid=4958990866295700577">#1196</a></li> <li>Kong now properly encodes an empty querystring parameter like <code>?param=</code> when proxying the request. <a href="/misc/goto?guid=4958990866380626636">#1210</a></li> <li>The configuration now checks that <code>cluster.ttl_on_failure</code> is at least 60 seconds. <a href="/misc/goto?guid=4958990866483278193">#1199</a></li> <li>Plugins: <ul> <li>Loggly: Fixed an issue that was triggering 400 and 500 errors. <a href="/misc/goto?guid=4958990866573671089">#1184</a></li> <li>JWT: The <code>TYP</code> value in the header is not optional and case-insensitive. <a href="/misc/goto?guid=4958990866667851796">#1192</a></li> <li>Request Transformer: Fixed a bug when transforming request headers. <a href="/misc/goto?guid=4958990866763465974">#1202</a></li> <li>OAuth 2.0: Multiple redirect URIs are now supported. <a href="/misc/goto?guid=4958990866855162045">#1112</a></li> <li>IP Restriction: Fixed that prevented the plugin for working properly when added on an API.<a href="/misc/goto?guid=4958990866944708853">#1245</a></li> <li>CORS: Fixed an issue when <code>config.preflight_continue</code> was enabled. <a href="/misc/goto?guid=4958990867048678690">#1240</a></li> </ul> </li> </ul> <h2>下载</h2> <ul> <li><a href="/misc/goto?guid=4958990867140689911" rel="nofollow">14.8 MB<strong>kong-0.8.2.aws.rpm</strong></a></li> <li><a href="/misc/goto?guid=4958990867232728243" rel="nofollow">14.9 MB<strong>kong-0.8.2.el5.noarch.rpm</strong></a></li> <li><a href="/misc/goto?guid=4958990867326582613" rel="nofollow">15.7 MB<strong>kong-0.8.2.el6.noarch.rpm</strong></a></li> <li><a href="/misc/goto?guid=4958990867413516599" rel="nofollow">16.3 MB<strong>kong-0.8.2.el7.noarch.rpm</strong></a></li> <li><a href="/misc/goto?guid=4958990867510504553" rel="nofollow">16.3 MB<strong>kong-0.8.2.jessie_all.deb</strong></a></li> <li><a href="/misc/goto?guid=4958990867612518628" rel="nofollow">12.1 MB<strong>kong-0.8.2.osx.pkg</strong></a></li> <li><a href="/misc/goto?guid=4958990867693851949" rel="nofollow">15.9 MB<strong>kong-0.8.2.precise_all.deb</strong></a></li> <li><a href="/misc/goto?guid=4958990867788613840" rel="nofollow">16.4 MB<strong>kong-0.8.2.trusty_all.deb</strong></a></li> <li><a href="/misc/goto?guid=4958990867882590686" rel="nofollow">16.4 MB<strong>kong-0.8.2.vivid_all.deb</strong></a></li> <li><a href="/misc/goto?guid=4958990867975725211" rel="nofollow">16.6 MB<strong>kong-0.8.2.wheezy_all.deb</strong></a></li> <li><a href="/misc/goto?guid=4958990868073689048" rel="nofollow"><strong>Source code</strong> (zip)</a></li> <li><a href="/misc/goto?guid=4958990868178970776" rel="nofollow"><strong>Source code</strong> (tar.gz)</a></li> </ul>