title: NestJS - Communication between 2 microservice
body: <p>I built a Http app and 2 microservices using TCP protocol.</p>
  <p>This is my application diagram.</p>
  <p><a href="https://i.stack.imgur.com/08mRi.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/08mRi.jpg" alt="enter image description here" /></a></p>
  <pre><code>// Http App/app.service.ts
  constructor() {
      this.accountService = ClientProxyFactory.create({
        transport: Transport.TCP,
        options: {
          host: 'localhost',
          port: 8877,
        },
      });
  
      this.friendService = ClientProxyFactory.create({
        transport: Transport.TCP,
        options: {
          host: 'localhost',
          port: 8080,
        },
      });
    }
  </code></pre>
  <p>I tried to send message from Account Service to Friend Service by <code>@Messagepattern()</code>.</p>
  <p>ClientProxy is set up each service. But it doesn't work.</p>
  <p>I read offical documentaion <code>@nestjs/microservices</code>, But i don't know which one is appropriate.</p>
  <p>Is there right way to send message from one microservice to another microservice?</p>