Service to service communication multiple App Mesh'es

0

Hi, I am building a CDK application, micro service architecture leveraging services like ECS Fargate, AppMesh. So far I have only 2 services, Service-a-Stack and Service-b-stack. For service to service communication I created a third stack called ClouldMap-stack. I export resources from shared Cloud-Map-Stack into Service-a and Service-b stack to utilise cloudMapNamespace defining ECS service.

const serviceA = new FargateService(this, `ServiceA`, {
      serviceName: 'service-a', 
      cluster,
      taskDefinition: serviceATaskDef,
      desiredCount: 1,
      securityGroups: [allowAllSG],
      cloudMapOptions: {
        cloudMapNamespace  // imported from CloudMap Stack
      }

This pattern work well

Now, I'd like to meshify the application. First guess is to create a 4th Stack where appMesh is defined and import resources from there into Service Stacks. But this approach brakes micro service principe - decoupling. I want keep my stacks independent as much as possible.

the questions are:

  • is it a good idea to create appMesh per Stack, assuming service to service communication with in multiple stacks?
  • is appMesh to AppMesh communication enabled if utilising the same cloudmap Namespaces say clouster.local
1개 답변
0

Multiple services could use same AppMesh and CloudMap. Please refer this blog a sample reference architecture with AppMesh, CloudMap and Multiple services. https://aws.amazon.com/blogs/architecture/deploying-service-mesh-based-architectures-using-aws-app-mesh-and-amazon-ecs/

AWS
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인