You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 5-network/10-long-polling/article.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ Being very easy to implement, it's also good enough in a lot of cases.
6
6
7
7
## Regular Polling
8
8
9
-
The simplest way to get new information from the server is periodic polling. That is, regular requests to the server: "Hello, I'm here, do you have any information for me?". For example, once in 10 seconds.
9
+
The simplest way to get new information from the server is periodic polling. That is, regular requests to the server: "Hello, I'm here, do you have any information for me?". For example, once every 10 seconds.
10
10
11
11
In response, the server first takes a notice to itself that the client is online, and second - sends a packet of messages it got till that moment.
12
12
@@ -70,9 +70,9 @@ As you can see, `subscribe` function makes a fetch, then waits for the response,
70
70
```warn header="Server should be ok with many pending connections"
71
71
The server architecture must be able to work with many pending connections.
72
72
73
-
Certain server architectures run a process per connect. For many connections there will be as many processes, and each process takes a lot of memory. So many connections just consume it all.
73
+
Certain server architectures run one process per connect. So there will be as many processes as connections, and each process takes a lot of memory. Too many connections just will consume it all.
74
74
75
-
That's often the case for backends written in PHP, Ruby languages, but technically isn't a language, but rather implementation issue. Most modern language allow to implement a proper backend, but some of them make it easier than the other.
75
+
That's often the case for backends written in PHP, Ruby languages, but technically isn't a language issue, but rather implementation one. Most modern language allow to implement a proper backend, but some of them make it easier than others..
76
76
77
77
Backends written using Node.js usually don't have such problems.
0 commit comments