What are difference between Single Page Application and Web Application. What are advantages and disadvantages. When SPA should be used and when Web application should be used
See this answer. An overly simplified comparison, in terms of development effort, is
Multi page application:
Drawbacks: requires many pages just to respond to every user action (e.g. add item to list, update form data), whereas in a SPA data binding can do much of the work of updating the view for you. Secondly, it's the responsibility of the web application to maintain state which is otherwise lost between full page requests. In contrast, the SPA can maintain its state in memory, between XHRs without additional work while the browser stays on the same page.
Single page application (SPA):
These are just typical steps I've noticed in developing both single- and multi-page apps, and this doesn't necessarily or extensively represent all cases.
To develop SPAs, frameworks such as AngularJS are highly encouraged and highly opinionated, an advantage of which is guidance on structuring your client-side JavaScript.
Where multi page applications respond to user actions with full page loads, single page applications by definition are limited to 1 page (otherwise they'd be multi page) and instead rely on XHR.
From: Adam Freeman Book “Pro Angular 9.” :
For a long time, web apps were developed to follow a
( Round-Trip Model ).
A lot of current web development is still for round-trip applications, not least because they require little from the browser, which ensures the widest possible client support.
But there are some drawbacks to Round-Trip applications:
( Single-page applications ) take a different approach.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With