How to properly forward request/response payloads to a non blocking payload analysis endpoint? #2075
Labels
Type: Idea
This issue is a high-level idea for discussion.
Milestone
What should we add or change to make your life better?
The Middleware doco states "Middleware should avoid interacting with the request or response bodies. Bodies are not buffered by default, so interacting with them can prevent them from reaching their destinations. While enabling buffering is possible, it's discouraged as it can add significant memory and latency overhead. Using a wrapped, streaming approach is recommended if the body must be examined or modified. See the ResponseCompression middleware for an example."
We understand this, however putting this together, while impacting the overall performance as little as possible, may be a little tricky.
Would there be any interest in providing such a sample, I'd be happy to work on this, while benefiting from your review, in order to provide the community with a best possible approach.
Why is this important to you?
As stated in the title, we're requested to transmit incoming/outgoing payloads to an external analysis endpoint (for audit/compliance reasons) and would like to do it as cleanly as possible.
The text was updated successfully, but these errors were encountered: