Z
Z
Zimaell2019-08-24 10:36:30
PHP
Zimaell, 2019-08-24 10:36:30

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

That is, it is possible, but I don’t know how to do it ...
Tell me how to arrange this communication?
Ps - This is the first time I encounter a node, I mainly wrote in php ...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
OnYourLips, 2019-08-24
@OnYourLips

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 question

Ask a Question

731 491 924 answers to any question