AWS ECS Private and Public Services

前端 未结 3 1646
别那么骄傲
别那么骄傲 2021-01-05 15:00

I have a scenario where I have to deploy multiple micro-services on AWS ECS. I want to make services able to communicate with each other via APIs developed in each micro-ser

3条回答
  •  孤城傲影
    2021-01-05 15:44

    According to the documentation, "Amazon ECS does not support registering services into public DNS namespaces"

    In other words, when it registers the DNS, it only uses the service's private IP address which would likely be problematic. The DNS for the "public" services would register to the private IP addresses which would only work, for example, if you were on a VPN to the private network, regardless of what your subnet rules were.

    I think a better solution is to attach the services to one of two load balancers... one internet facing, and one internal. I think this works more naturally for scaling the services up anyway. Service discovery is cool, but really more for services talking to each other, not for external clients.

提交回复
热议问题