Answer the question
In order to leave comments, you need to log in
Nodejs ssr and microservices, how to prepare correctly?
On implemented 80% on php. There were thoughts to take out frondetnd from the main repository.
In order to structure the code base, implement a declarative style in js, simplify support, lower the entry threshold, and be able to hire more competent and highly specialized developers and other advantages that are significant for the project.
The project is sensitive to SEO, so you need to render the page on the server.
As a result of the restructuring, we get a scheme: The
node on the hit renders the page based on requests to other services. Due to the high number of components on the page, there can be dozens of requests to services. Dozens of http requests to the same services, this is a recurring overhead for initializing connections, checking rights, analytics, etc.
In this regard, the question is how to cook? is it possible to work between the node and php over persistent connections? is it possible to use binary protocols? Is it possible to parallel requests for services, and what profit can we expect?
Does the community have an example of such cases from life, with numbers?
Answer the question
In order to leave comments, you need to log in
The node on the hit renders the page based on requests to other services. Due to the high number of components on the page, there can be dozens of requests to services. Dozens of http requests to the same services, this is a recurring overhead for initializing connections, checking rights, analytics, etc.
There were thoughts to take out frondetnd from the main repository.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question