pingora icon indicating copy to clipboard operation
pingora copied to clipboard

Make response_body_filter async to support async operations

Open rxdiscovery opened this issue 8 months ago • 3 comments

Hello,

Currently, the response_body_filter in Pingora is synchronous. For consistency with other phases and to allow executing asynchronous code inside the filter, it should also be made async.

This change would enable:

  • Uniform async handling across all processing phases.
  • Execution of async operations (e.g., I/O, DB calls) within response_body_filter.

It would improve both flexibility and consistency of the request/response pipeline.

Thank you for considering this improvement..

rxdiscovery avatar Mar 05 '26 10:03 rxdiscovery

We will likely make this a configurable feature for now.

drcaramelsyrup avatar Mar 06 '26 18:03 drcaramelsyrup

Hey @drcaramelsyrup, any update regarding this new feature?

liavweiss avatar Jun 21 '26 11:06 liavweiss

I opened a pull request to fix this. I hope it gets approved #922

rxdiscovery avatar Jun 21 '26 20:06 rxdiscovery