8705. QPS and Event Loop - draft
Node.js


QPS in multi-threading.

1. Queries Per Second(QPS)

Queries-per-second (QPS) is a measure of how much traffic a particular query server is handling at a given time.

1.1 Single Thread

image

1.2 Two Threads

image

1.3 Two Threads with Context Switch

image

2. Event Loop

2.1 Event Loop in Node.js

2.2 How Event Loop Works

4. Source Files

5. References