-
Notifications
You must be signed in to change notification settings - Fork 4
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
NAME port is not sent to the Registry in non selfhost environments #7
Comments
@suvl, after some discussion with @ctorrao we came to the conclusion that a better approach may be to have a Because, even if we went for the IIS approach, there may be more WebSites hosting the application, and in OWIN/Asp.Net Core self-hosted scenarios it would be impossible to know the port, making it inconsistent. This would, of course, be more complex, and probably move this to the 1.1.0 milestone. What's your toughts? |
@Symbianx you are proposing to maintain an I know it is perfect from the NAME Registry requirements' point of view. I'm concerned about the possible impact on the pipeline we cannot foresee. Shall we first measure the impact of such an interception? Is there any way it can be offloaded or maybe a way to O(1) detect what does not require processing? Plus, from that point on, the Registry would have to support multi-addresses, maybe? |
The performance impact is a great point, regarding the collection used we could use an Also, we can consider only taking into the account the URLs of the request against the Edit:Yes, we could improve the Central Registration protocol to support the 'Known Addresses' flow. Keeping the existant 'Port' field for the NAME self-hosted solution that knows the specific port on which it is listening, or we could deprecate the Port field. |
I am not in favor of solely consider the We must run some numbers to assess real impact from this. There's already a fragment of impact from adding the X-Name header, maybe we could use exactly that pipeline execution step? (afraid to break SOLID here) About the protocol, I think it should move to version 2 with support for |
I'm not too fond of considering only the Yes you can use the same extension point, and I agree that we need to assess the performance impact it will have. I agree with the protocol. |
As is, the port in which NAME is listening is sent to the Registry as null when using the WebApi and AspNetCore packages.
Getting the port is not trivial, and some discussion may be needed.
For apps hosted in IIS we can use the
Microsoft.Web.Administration
namespace to get this information, so at least the NAME.WebApi package should send the port.The text was updated successfully, but these errors were encountered: