Answer the question
In order to leave comments, you need to log in
How to set PHP and NODE JS communication?
The bottom line is that php is launched, all the necessary data is taken from the database, placed in certain variables, then these variables are transferred to the node, so they are processed, make different requests, return variables to php, write to the database, etc.
On one form I saw this post
For continuous operation, it is better to raise a web server on a node (this is done in just 10 minutes), talk to it via HTTP. So PHP script will work faster
Answer the question
In order to leave comments, you need to log in
It is not clear from the task why you are doing this. Because you can only use one of them.
Their performance is similar in asynchronous mode.
You can use queues to transfer data. You can queue and base.
But apparently you don’t need any of this and the task itself will disappear when you comprehend it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question