1. Explain your understanding of node and php:
Node: Single thread, one thread receives multiple requests
Php: Create new threads according to requests and handle concurrent requests.
A little dizzy:
Whether it’s php or node, the order in which they respond to multiple requests:
First in, first out, or first response after processing logic?
Add: 1 Set node, php has io operations involved, node processing logic has io operations, and asynchronous calls;
Only when the server completes the processing logic will it send the response status to the client.
If the request processing logic is not called asynchronously, it is FIFO
That is the first response after processing the logic first