0

I got a question from Network team if we can assign a domain url to a load balanced micro service URL excluding the service name like http://content.xyz.com/ instead of http://content.xyz.com/content.svc? Wondering if any one used this URL pattern and can suggest if this can create any issue? Thanks in advance.

4
  • Can you clarify why the network team wants to do such a thing? I know of reasons to do the opposite (that is: ensure that all microservices have a distinct URL path): that allows you to multiplex all microservices on a single load balancer port. Jun 22, 2020 at 18:25
  • @RickPannekoek, this is to explore the options to choose one out of various ways to configure load-balancer. Although, we have configured it using content.xyz.com/content.svc but would love to hear if we can use content.xyz.com? Jun 25, 2020 at 17:16
  • @MukeshKumar, Would you register the content.xyz.com as part of your discovery service registration as well? In my opinion, the security groups from a n/w perspective would be a lot more complex and chatty. There is no reason why it should not work (unless there is a hard code to check for context somewhere in the SDL jars).
    – Shiva
    Jun 26, 2020 at 16:59
  • @Shiva, yes, I do think there should not be any issue until load-balancer able to hit the correct URL of service. We could register the new load balanced URLs to register capabilities. I also think that it should not be a problem until it's hard-coded some where. May be a good one to give it a try. Jun 28, 2020 at 17:44

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.