1 Resposta
- Mais recentes
- Mais votos
- Mais comentários
1
If you want multiple containers to work together (e.g., web server container, app server container, DB container), you can simply put all the container definitions into a single task definition and set one of them (e.g., web server) as the essential container. The containers can resolve each other on localhost
interface.
https://docs.aws.amazon.com/AmazonECS/latest/userguide/fargate-task-networking.html
respondido há 7 meses
Conteúdo relevante
- AWS OFICIALAtualizada há 2 anos
- AWS OFICIALAtualizada há 2 anos
- Como uso o AWS Cloud Map para configurar a descoberta de serviços entre contas para serviços do ECS?AWS OFICIALAtualizada há um ano
Thank you, I did not know about this way. What are the benefits of using Service Connect over this simple method ?
Since I've never used Service Connect feature, I cannot provide a detailed scenario where Service Connect will be very beneficial.
However, I found one case that you need Service Connect is that you need communication between different ECS Services, as mentioned in the following documentation. https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-connect-concepts.html
The reason you might prefer to separate tasks to different ECS services is that you might want to decompose your monolithic app to multiple general purposed microservices, and make them work together for some complex tasks as needed.