----NODEJS----
1, for the operating system, the cost of creating a thread is very expensive, to give him to allocate memory, included in the schedule, while the thread switching time also to perform memory paging, CPU cache is emptied, switching time also to re-read information from memory, destroying the data locality.
2. Event-driven single-threaded asynchronous model & multithreaded synchronization model
3. Comparison of web development architectures
Template-centric Architecture MVC architecture
4. Package Management
Nodejs's npm, Python pip, ubuntu apt-get, php pear, python and a PyPI
5. Web Development Framework Comparison
|
Characteristics |
Template as a central frame |
MVC Framework |
|
How page is generated |
Execute and replace the statements in the label |
HTML page generated by the template engine |
|
Path resolution |
Correspondence to File system |
defined by the Controller |
|
Data access |
Querying or accessing the file system through SQL statements |
Object Relational Model |
|
Architecture Center |
Scripting language is an extension of static HTTP services |
Static HTTP server is a complement to scripting languages |
|
Scope of application |
Small-scale websites |
Large-scale website |
|
Learning Difficulty |
Easy |
More difficult |
6. Nodejs Express Framework
Web Development Notes