1. About node. JS IO processing input and Echo
Enter Echo ' I must learn about node. js ' in Windows terminal or CD
Result will just input echo ' I must learn about node. js ' content echoing output to CD
The terminal is also the input relative to the echo ' I must learn about node. js ' Display results as follows:
Move the angle of the data, this is a simple echo Text tool
- The text string is passed to the Echo program (input)
- Text string flow through Echo's logic
- The Echo program displays its result output to the terminal
Personal understanding (big boys do not like, do not spray):
TV according to the remote control button back, the remote control can be understood as the TV input switch channel request, the results echo to the TV display screen, the final switch channel.
Talk about the history of Web applications today
(1) Web development was originally designed to read HTML documents, storing HTML files on a server that can be accessed through a Web server whenever an Internet connection is available
(2) with the development of the web, evolved into a database and scripting language
(3) Today's Web application design is much more complex, third-party Interface Application Interface (API) heavy interaction, the user simultaneously connected and real-time interaction
Personal Understanding Web server (big guys do not like, do not spray):
When the browser sends a request to the server, the server accesses the database server according to the request, and the response completes the request to the browser.
The browser displays the relative data based on the requested status code.
Response of the Web server:
- Time to resolve DNS requests
- Busy programs for servers
- How big is the data to be answered?
- Available bandwidth for servers and customers
- Software efficiency that is served in response
- How busy you are using
About the status code for http:
- 1XX: Information class, indicating receipt of Web server request, processing further
- 2XX: Successful, indicates that the user request is received correctly, understood and processed for example: 200| | ok| | 4
- 3XX: Redirect to indicate that the request was unsuccessful and the customer must take further action
- 4XX: Client error, indicating that the client submitted a request with an error, for example: 404
- 5XX: Server error, indicating that the server could not complete the processing of the request, for example: 500
- Found: means that the document referenced in the request does not exist
node. JS IO processing input and echo, and the history of today's Web applications