01.
833
In this article, we will answer the following questions: what is SPA in web development? Who needs to use the SPA? And also, consider examples of SPA applications.
What is SPA in web development?
Single page application (SPA) – a relatively new beast comes from Google. A single page application, that is, an application that uses only one html page. This solution avoids reloading an entire page of a web document. The SPA implements a certain area for active information, and all other parts of the document do not reload when the information is updated. Thus, it is possible to reduce the load on the server for apache requests. Usually, ajax technology is used for this technology. That is, all requests to the server or database go through ajax requests.
Js frameworks can also be used: angular, vue. But in this case, you need to use a Node.js server. This implementation is not suitable for 30% of known hosting in Runet. I mainly use VDS or cloud hosting for such applications.
The advantage of implementation on js frames is speed, extensibility and a large number of programmers who are able to support such projects.
In the case of building a SPA application, thanks to the PHP (python) + ajax bundle, there is a huge minus — it is the weight of the application and its extensibility. Usually such a stack is used by backend programmers who, unfortunately, are dinosaurs and are not able to get acquainted with new js frames.
Who needs to use SPA?
The most logical use of SPA – is a CRM system on the web. This stack will allow you not to heavily load the server and allows you to implement a similar solution on localhost using some kind of system manager already forgotten by everyone. The essence of this solution is as follows: provide a stable power supply, open ports and install a Node.js server.
But, in this case, it is more logical to use cloud hosting and share the API. This will allow not only to use your application from any Internet access point, but also to implement, for example, a mobile application for certain employees.
SPA application examples
As for the last question – examples, they are always in our sight. These are (almost) all versions of google services that are older than 2016 (latest updates). All other examples can be found everywhere among solutions on the web.

Send comment