HA代理SPOE在每个请求上都增加了更多的时间。有没有办法以异步方式使用HaProxy SPOA?

HA代理SPOE在每个请求上都增加了更多的时间。有没有办法以异步方式使用HaProxy SPOA?,haproxy,rate-limiting,Haproxy,Rate Limiting,我使用HA代理SPOE来限制Http请求的速率。我需要您的帮助来优化我的解决方案,因为下面的解决方案是在每个请求上增加一些处理时间 这是我的haproxy配置: frontend http mode http bind *:80 default_backend allServers acl is_location_v3 path -i -m beg /item_locations/v3 filter spoe engine apikey-ratelimit

我使用HA代理SPOE来限制Http请求的速率。我需要您的帮助来优化我的解决方案,因为下面的解决方案是在每个请求上增加一些处理时间 这是我的haproxy配置:

frontend http
    mode http
    bind *:80
    default_backend allServers
    acl is_location_v3 path -i -m beg /item_locations/v3
    filter spoe engine apikey-ratelimit config /usr/local/etc/haproxy/spoe.conf
    acl req_exceeds_limit var(txn.ratelimit.ratevalue) -m int eq 0
    http-request deny deny_status 429 if is_location_v3 req_exceeds_limit
backend allServers
    mode http
    balance roundrobin
    server http ilsapi:5050 check
backend spoeServers
    mode tcp
    balance roundrobin
    timeout connect 5s  # greater than hello timeout
    timeout server  3m  # greater than idle timeout
    server agent spoa_nowait:9004 check
这是我的SPOE配置:

[apikey-ratelimit]
spoe-agent apikey-ratelimit-agent
    messages apikeyratelimit
    option var-prefix ratelimit
    option async
    option pipelining
    timeout hello      2s
    timeout idle       2m
    timeout processing 10ms
    use-backend spoeServers
    log global
spoe-message apikeyratelimit
    args api-key=url_param(key) 
    event on-frontend-http-request
HA代理将请求重定向到SPOA代理,SPOA代理应用速率限制并将响应发送回HaProxy。根据从代理接收到的值,请求被速率限制或转发到后端服务器。我遇到的问题是每个请求都需要处理时间。有没有一种方法可以实现无需等待时间的速率限制