Clarification: Naming Service #5
Comments
AFAIK (I'm not from the SF team) that's correct! Note that there are already two http based gateway projects ( weidazhao/Hosting and c3-ls/ServiceFabric-Http ) so you don't have to write your own gateway if they fit your scenario.
that's the web-based "Service Fabric Explorer" on port 19080 |
In addition to the HTTP management endpoint (Http Gateway), the product now includes HTTP Application Gateway as well. The HTTP application gateway provides a simple HTTP based resolve and forward (reverse proxy) with SSL termination. This allows you to address your HTTP based micro-services from outside the cluster using http://:/applicationName/serviceName |
really? that would be awesome - are there any docs for this?? |
Yes that's what I meant the Application Gateway.
so for service fabric:/DealerApplication/DealerService I tried: |
We are working on detailed documentation of the application gateway functionality. The application gateway will append the URI that you provide after the service name to the resolved address of the service. So in your case the request will get forwarded to the micro-service as http://localhost:33003/swagger/ui/swagger/ui. The recommended approach is to just listen on the port on the micro-service or adjust the URI when sending the request. |
Closing this for now. When the doc(s) Vipul is referring to are published, we'll update this issue. |
Any update on this? |
seems like there now is a document for this. thanks for documenting it! https://azure.microsoft.com/en-us/documentation/articles/service-fabric-reverseproxy/ |
There is a follow-up question at http://stackoverflow.com/questions/38881031/how-to-configure-and-enable-azure-service-fabric-reverse-proxy-for-on-premises-c/39020576#39020576 for on-premise configuration. Would be great to have this one answered. |
senj, thank you for referring to this post. Hope someone can give us a clarifying answer to this question. |
I updated the StackOverflow question mentioned above with instructions on how I got the reverse proxy working on my Service Fabric on-premises multi-vm cluster. Long story short: add the needed HttpApplicationGateway settings to the ClusterManifest and upgrade the cluster. |
Hello,
first, congratulation to service fabric, it's a great product.
I need clarification about the naming service so I'll describe how I see its role and functions.
as I don't want collisions or provide a service-port mapping, these ports are assigned dynamically and that's fine.
Is there an easiert way or am I using it completly wrong?
I don't know what the "HTTP Gateway" described in the ClusterManifest has to do with it?
The documentation is only about "internal" address resolution, as far as I saw.
I'm using the "old" ASP.NET 5 Template but will now move to https://github.com/weidazhao/Hosting as rc2 got released.
Thanks..
The text was updated successfully, but these errors were encountered: