Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Share transport among reverse proxies #330

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jakubno
Copy link
Member

@jakubno jakubno commented Feb 25, 2025

This enables reusing connections and also lowers memory footprint

@jakubno jakubno added the improvement Improvement for current functionality label Feb 25, 2025
@jakubno jakubno self-assigned this Feb 25, 2025
}

// Set the transport
proxy.Transport = transport
Copy link
Contributor

@0div 0div Feb 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unless you need those specific transport configs have you tried Director to only modify the Request? I'm curious to know if it's more efficient. Probably not if we're gonna modify the request url each time.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you are right, we will need only probably need only one ReverseProxy

@jakubno
Copy link
Member Author

jakubno commented Feb 27, 2025

I have few more optimizations, but it isn't urgent now, postponing it

@jakubno jakubno marked this pull request as draft February 27, 2025 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Improvement for current functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants