moleculer

How can I connect molecular gateway with express-nodejs app?


I am learning the microservice architecture and trying to use molecular. It seems like it can control many aspects of my 'express-nodejs' apps. Before, I migrate each nodejs apps to molecular, is it possible to connect molecular gate API and my nodejs app?


Solution

  • Yes, use https://moleculer.services/docs/0.14/moleculer-web.html for web api gate. And use transport https://moleculer.services/docs/0.14/networking.html between nodejs apps. One nodejs app this is one moleculer broker and many services in every is broker.