1

I am implementing microservices architecture, there I learned a new topic "Transporter" which is used for the communication between different services.

But the same thing we can also build with request calls using packages like "axios", "http-request" etc.

So with inclusion of transporters what difference will it make? And how transporter broker call is different from http request call?

Lee Taylor
  • 7,761
  • 16
  • 33
  • 49
ADITYA HAZARIKA
  • 300
  • 1
  • 4
  • 13

1 Answers1

1

From the docs (https://moleculer.services/docs/0.14/networking.html#Transporters)

Transporter is an important module if you are running services on multiple nodes. Transporter communicates with other nodes. It transfers events, calls requests and processes responses …etc. If multiple instances of a service are running on different nodes then the requests will be load-balanced among them.

More general response. See HTTP vs NATS (could be any other pub/sub protocol) https://www.slideshare.net/Apcera/nats-vs-http

Adriaan
  • 17,741
  • 7
  • 42
  • 75
André Mazayev
  • 393
  • 2
  • 10