Skip to content

Commit 706e7ac

Browse files
committed
minor fixes
1 parent a641a1a commit 706e7ac

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,13 @@ 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 one process per connection; resulting in there being as many processes as there are connections, and each process will take a lot of memory. So, too many connections will just consume it all and thereby limiting the number of connections it can handle.
73+
Certain server architectures run one process per connection; resulting in there being as many processes as there are connections, while each process consumes quite a bit of memory. So, too many connections will just consume it all.
7474
75-
That's often the case for backends written in languages like PHP and Ruby. However, technically this isn't a language issue, but rather an implementation one. Most modern languages allow to implement a proper backend, but some make it easier than others.
75+
That's often the case for backends written in languages like PHP and Ruby.
7676
77-
Backends written using Node.js usually don't have such problems.
77+
Servers written using Node.js usually don't have such problems.
78+
79+
That said, it isn't a programming language issue. Most modern languages, including PHP and Ruby allow to implement a proper backend. Just please make sure that your server architecture works fine with many simultaneous connections.
7880
```
7981

8082
## Demo: a chat

0 commit comments

Comments
 (0)