Hello!
On the server (nodejs) there is a React which rendrit components and gives them to the client.
If this is done directly (nodejs-browser), then there is no problem.
But I need this scheme:
1. The user requests the page from the application in PHP
2. PHP application in some miraculous way accesses the nodejs reactor
3. React the desired page
4. PHP application receives a standard page from the reagent and gives it to the client.
It turns out the PHP application acts as a proxy between the client and the nodejs with the reactant
How can this be implemented? Where to start, where to dig?
How to link nodejs and php?
придется слать запросы через http а сервис высоконагруженный- but your http is not friendly with high load? Well, one more option -exec(or a similarpcntl_execlikepcntl_exec) from PHP - execute, get the result, you want it synchronously, you want asynchronously, except for the web server layer. - Goncharov Alexander