Answer the question
In order to leave comments, you need to log in
What to use to generate a page on the server?
Hello.
There is a backend with REST API. We need to make a frontend.
My goal is fast page generation. From experience, SPA is not the fastest option, since loading the page first and then several requests to the API takes longer than immediately getting the finished page generated on the backend server.
The question is (rather vague, I understand), are there any well-established solutions for generating a frontend on the server? Or should you just use what you know well? (I mean ruby, python and other php :) )
Thanks in advance!
Answer the question
In order to leave comments, you need to log in
1. If for some reason your request to the API takes longer than going to the database for this data + rendering the page, this is a reason to think about what is wrong with this API.
2. You can always put the initial data directly into the page, and then work like a SPA, go to the API.
3. Fashionable React, which renders beautifully both on the server and on the client. Well, or even more Meteor / Derby and other isomorphic fullstack.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question