带有Php库的节点JS应用程序[关闭]

I have a web application which is written in Node JS, and now I came up to implement a payment gateway which doesn't support NodeJS. Although it supports PHP, Asp etc. I wanted to know if there is a way I can work this out. Is it possible to host Node and PHP application in the same server? Can we write microservice using RabbitMQ which will be a communication bridge between both NodeJS and PHP? Please suggest.

  1. Most payment gateways support REST based APIs. So it doesn't matter what the underlying technology of your application is.
  2. It is possible to host both PHP & Node.js applications in a single machine as long as they map to different ports.
  3. Microservices often communicate with REST based APIs. So communication between the 2 applications above should be possible with or without a message broker like RabbitMQ. Whether you should have this mechanism in place for your scenario is debatable.