AWS ECS Private and Public Services

前端 未结 3 1648
别那么骄傲
别那么骄傲 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:31

    I want to deploy the front-end on AWS ECS as well that can be accessed publicly and can also communicate with other micro-services deployed on AWS ECS.

    I would use Service Discovery to wire the services internally and the Elastic Load Balancer integration to make them accessible for the public.

    The load balancer can do the load balancing on one side and the DNS SRV records can do the load balancing for your APIs internally.

    There is a similar question here on Stack Overflow and the answer [1] to it outlines a possible solution using the load balancer and the service discovery integrations in ECS.

    Can I use Elastic Load Balancer to make front-end micro-service accessible to end-users over the internet only via HTTP/HTTPS protocols while keeping it in a private subnet?

    Yes, the load balancer can register targets in a private subnet.

    References

    [1] https://stackoverflow.com/a/57137451/10473469

提交回复
热议问题