I am currently running a public web api that runs on PHP. I was thinking of adding a local node server with which the PHP can interact. It would allow me to do stuff like passing off long running operation to node, allowing me to respond to the user quickly instead of blocking the php script while the long operation is running. After the operation completes, I can use firebase to send a push message, informing the user that his operation is complete.
The Php service is secured through SSL but i was thinking that I could maybe run the local node server through HTTP because its local anyway. Its not accessable through a public IP.
Would this be a secure solution?