Istio Enable Rate Limit based on Payload Size sent from the server

I’m looking for a way to enable rate limiting in istio based on size of payload/data sent from the server as a response to request i.e it should not be greater than 100MB per minute/request.

Is it possible to achieve this in istio using envoy proxy or some other means?

Currently I have seen the global rate limiting that applies on the number of request per (time-unit) based on request header/remote_address.

Any one having idea about this or have done this type of task before, please share your findings.

Don’t think it’s possible using envoy rate limiting(https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/rate_limit_filter) but it looks like a good option for envoy wasm filter(https://istio.io/latest/blog/2020/wasm-announce/)

1 Like