V
V
vasIvas2016-01-09 23:22:44
JavaScript
vasIvas, 2016-01-09 23:22:44

How to create a spa application on the server?

The question is not tied to react or angular, it is in the abstract context of being.
How to create a spa application on the server? It is clear that it is good when one instance of the application is running, it is in the spirit of both js and nodejs, such as modularity. But the context of the node, if you don’t specifically try, always works with the same context and thus adds thoughts in advance that you need to specially create an individual instance for each connection. This is true? Do I need to create a separate instance of the spa application for each connection for its prerender?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2016-01-09
@vasIvas

It depends.
Application isomorphism is a very abstract term that does not imply any specifics.
If the UI does not depend on the user, you can generally cache this goodness in some way.
If the UI depends on the user - again, the question is what we need to get. The same react can be rendered in completely different ways within the same process. As well as the components of the second angular. But the way you build your application can already be divisive, and so on.
Isomorphism is cool, but so far few people have it and people still don’t know how to cook it correctly. Everyone gets it differently.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question