Repository navigation
How serverpod handles the concurrent connections? #326
Answered
by
vlidholt
gintominto5329
asked this question in
Q&A
|
Hello, We are currently developing an app in flutter, and considering to use dart on the backend too, So may i ask, Thanking you... |
Answered by
vlidholt
Oct 9, 2022
Replies: 1 comment 3 replies
|
Dart can easily handle concurrent connections. It's true that the main code is running in a single thread, but under the hood the connections are handled in separate threads (in futures). The only issue is that if you are running Serverpod on a server with many CPUs it may not utilize them efficiently. This can be solved by running two (or more) servers on a single machine. |
3 replies
Answer selected by
vlidholt
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Dart can easily handle concurrent connections. It's true that the main code is running in a single thread, but under the hood the connections are handled in separate threads (in futures). The only issue is that if you are running Serverpod on a server with many CPUs it may not utilize them efficiently. This can be solved by running two (or more) servers on a single machine.