You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/07/29 03:08:39 UTC

[GitHub] [apisix-website] spacewander commented on a change in pull request #432: docs: added release Apache APISIX 2.8 blog

spacewander commented on a change in pull request #432:
URL: https://github.com/apache/apisix-website/pull/432#discussion_r678789041



##########
File path: website/blog/2021-07-28-release-apache-apisix-2.8.md
##########
@@ -0,0 +1,142 @@
+---
+title: "Apache APISIX 2.8 正式发布,带来更多新功能!"
+author: spacewander
+authorURL: "https://github.com/spacewander"
+authorImageURL: "https://avatars.githubusercontent.com/u/4161644?v=4"
+---
+> [@spacewander](https://github.com/spacewander), Core developer of Apache APISIX from [Shenzhen Zhiliu Technology Co.](https://www.apiseven.com/)
+>
+<!--truncate-->
+
+Apache APISIX 2.8 版本正式发布!🎉 这个版本有 30+ 开发者参与,共提交了 100+ PR,支持了 **1 个新功能、1 个新体验、2 个新插件、2 个新玩法**,快去阅读了解 2.8 版本的新特性吧!
+
+👇👇👇
+
+## Release Notes
+
+### 新功能:独立的 Keepalive 连接池
+
+从[2.7 版本](https://apisix.apache.org/blog/2021/06/29/release-apache-apisix-2.7)开始添加 Apache APISIX 自己的补丁和 Nginx C 模块,增强原生 Nginx 的功能,希望能够动态设置越来越多的 Nginx 配置。在发布的最新版本中,Apache APISIX 已经支持在 Upstream 级别上配置独立的 Keepalive 连接池。
+
+目前包含了以下功能:
+
+- 动态设置 mTLS
+- 动态设置 client_max_body_size
+- Upstream 的 keepalive(2.8 新功能)
+- gzip (2.8 新插件)
+
+在 Apache APISIX 后续版本中,我们也会陆续允许下面的 Nginx 配置能够被动态设置:
+
+- real_ip
+- proxy_max_temp_file_size
+- ……
+
+Upstream 的配置举例:
+
+```JSON
+{
+    "id": "backend",
+    "nodes": {"host:80": 100},
+    "type":"roundrobin",
+    "keepalive_pool": {
+        "size": 4,
+        "idle_timeout": 8,
+        "requests": 16
+    }
+}
+```
+
+### 新体验:stream 代理功能增强
+
+在 2.8 版本中,把 [ip-restriction](http://apisix.apache.org/docs/apisix/plugins/ip-restriction/) 和 [limit-conn](http://apisix.apache.org/docs/apisix/plugins/limit-conn/) 两个插件从 HTTP 部分的移植到了 stream 部分,这么做的好处是丰富网关在 stream 代理的功能,增加对上游服务的安全性保障。
+
+ip-restriction 可以用来做 IP 黑白名单过滤,保证只有来自特定 IP 的请求才能访问到后端服务。
+
+limit-conn 可以用来限制特定路由上同时存在的连接个数,限制客户端的并发访问量。
+
+### 新插件:gzip 插件
+
+2.8 版本中新增了 gzip 插件,使用 gzip 插件可以**动态设置路由级别的 gzip 参数**。
+
+gzip 配置举例:
+
+```JSON
+{
+    "plugins": {
+        "gzip": {
+            "min_length": 20,
+            "http_version": 1.1,
+            "buffers": {
+                "number": 32,
+                "size": 4096
+            },
+            "types": [
+                "text/html"
+            ],
+            "comp_level": 1,
+            "vary": false
+        }
+    }
+}
+```
+
+### 新插件:ua-restriction
+
+`ua-restriction` 插件用于校验 User-Agent 是否处于黑白名单中,黑白名单是一个非常常见的需求,现在可以通过插件的方式启用了。
+
+`ua-restriction` 配置举例:
+
+```JSON
+{
+    "plugins": {
+        "ua-restriction": {
+            "denylist": [
+                "my-bot1",
+                "(Baiduspider)/(\\d+)\\.(\\d+)"
+            ]
+        }
+    }
+}
+```
+
+### 新玩法:支持通过插件的方式实现 balancer

Review comment:
       "通过插件的方式实现 balancer" is hard to distinguish from "自定义 balancer".
   What about "支持在选择上游节点之后,通过插件的方式执行特定逻辑"?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org