apache / apisix-java-plugin-runner

APISIX Plugin Runner in Java
https://apisix.apache.org/
Apache License 2.0
126 stars 95 forks source link

request help: API6 Java Plugin async support #264

Open ChuanDou2021 opened 10 months ago

ChuanDou2021 commented 10 months ago

PluginFilter async support

Is it possible make PluginFilter to support async operation ?

In PluginFilter.filter, I need to perform a redis query operation, then performed redis write operation in PluginFilter.postFilter。

However, currently the code executed in the PluginFilter.filter function is synchronous, and the query database operation will block Netty IO threads, resulting in a drop in plugin throughput

Environment