Skip to content

Commit 9007790

Browse files
authored
Merge pull request #2073 from joaquinelio/patch-1
once in -> once every
2 parents f983992 + 977cc0f commit 9007790

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

5-network/10-long-polling/article.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Being very easy to implement, it's also good enough in a lot of cases.
66

77
## Regular Polling
88

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.
1010

1111
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.
1212

@@ -70,9 +70,9 @@ As you can see, `subscribe` function makes a fetch, then waits for the response,
7070
```warn header="Server should be ok with many pending connections"
7171
The server architecture must be able to work with many pending connections.
7272
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.
7474
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..
7676
7777
Backends written using Node.js usually don't have such problems.
7878
```

0 commit comments

Comments
 (0)