ThreeMammals / Ocelot

.NET API Gateway
https://www.nuget.org/packages/Ocelot
MIT License
8.31k stars 1.63k forks source link

`HttpContext` copies in `MultiplexingMiddleware` even if 1 downstream route defined #1825

Closed ggnaegi closed 6 months ago

ggnaegi commented 9 months ago

Expected Behavior / New Feature

The middleware code is also very complicated to read, even though it is an important part of the application code.

raman-m commented 9 months ago

Yeah, Multiplexing feature is a hard nut... Thank you for design review! 💪 So, I agree this feature can be refactored and redesigned a bit to improve performance...

In my opinion, this is complex feature and it affects performance, it is better to include this design rework into next upcoming release, but not Nov'23, and seems not Dec'23 releases... Probably we can work on this issue in Jan'24... 🆗 ❔