-
Notifications
You must be signed in to change notification settings - Fork 17
spa
Pierre Besson edited this page Aug 12, 2014
·
4 revisions
The application's paradigm has changed.
As browser gets faster and faster, it was time to move to JavaScript Applications and Web API.
##Schema
- All the business logic (database access, service layer)
- Routing API
- Security
- All the browser routing
- Page rendering
- All UI interactions
- Eventually local databases
- The application logic is deported on the browser
- First connexion : the server send html file with one or two JavaScript files, all assets (images, fonts) and one CSS. (The browser add it into its cache).
- Then the application exchange only via a REST API using ajax.
- An application can also communicate directly with many other webservices such as : Google maps, adress improvement, ...
- A lighter network traffic
- Faster applications (User interface complexity is delegated to the browser)
- Performance improvement with browser updates (1 time per two weeks for chrome)
- Asynchronous loading
- Server technology agnostic (only http)