Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inaccurate pros #156

Closed
web-bert opened this issue Jun 22, 2017 · 4 comments
Closed

Inaccurate pros #156

web-bert opened this issue Jun 22, 2017 · 4 comments

Comments

@web-bert
Copy link

The app feels more responsive and users do not see the flash between page navigations due to full-page refreshes.

If you utilise caching correctly, the flash between page navigations does not occur. If your APIs respond in a timely fashion, then it will feel responsive too. Also if you employ chunked responses, the server can send the data is has straight away (like the header), then wait for APIs to respond and then send the rest of the page.

Fewer HTTP requests are made to the server, as the same assets do not have to be downloaded again for each page load.

Again if you use caching correctly, this is not true. If you are lazy loading assets, then you would probably have more when rendering in the client.

Clear separation of the concerns between the client and the server; you can easily build new clients for different platforms (e.g. mobile, chatbots, smart watches) without having to modify the server code. You can also modify the technology stack on the client and server independently, as long as the API contract is not broken.

If you separate the "server" into two parts, for example, a Python back end and a Node front end; you have clear separation of concerns and none of the downsides of doing it all in the client. You are in complete control of all versions of all the software on each server instead of running you app in an unknown and uncontrolled environment. You have the ability to re-use the APIs for mobile apps etc and can easily change the tech on either stack. Also you can easily make cross origin requests, which makes it easy to compose a page from many APIs (if required).

@yangshun
Copy link
Contributor

Would you like to make a pull request to improve on the inaccuracies?

@anfengdege
Copy link

WHAT

@grab grab locked and limited conversation to collaborators Jun 26, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@yangshun @web-bert @anfengdege and others