Answer the question
In order to leave comments, you need to log in
How to organize the simultaneous operation of the site in PHP and node.js?
If you migrate the current version from PHP to Node.
Who has some experience, how to organize it? What not to rewrite at once, but in parts.
The main thing is authorization shared through Redis/db.
+ Proxy-routing through nginx to node.js, for certain urls.
Working option?
Answer the question
In order to leave comments, you need to log in
Since it is supposed to be rewritten on the Node, I advise you to take the microservices architecture as a basis:
Simplified:
Now I just rewrote the Django project to Noda, but I left the Django admin panel - I don’t feel like messing around. Everything works fine, you can live. I did not have to touch the database, so there are no problems. Of course, it is convenient to resolve all the urls with nginx - where to go for something. By the way, the nginx config is perfectly assembled by gulp using any general-purpose template engine.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question