Concurrency for many HTTP requests #2832
-
Hi, I'm interested to use Mongoose as a web server that needs to handle many PUTs of small files to local disk from one client, and GETs of those same files from another client. The GETs are coming quickly, about 200 or 300 ms after the PUTs. How would mongoose http server do concurrency in this case? Fork a process or spawn a thread per HTTP request? or is there a thread pool, or some pre-forked processes already running that distribute processing of the incoming requests? or some other way? My platform is ubuntu 24.04 on AMD Ryzen, plenty of mem and cpu (16 cores @ 3 Ghz). Any info appreciated. Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Please see our documentation, and follow the guidelines in our tutorials.
If you absolutely need multi-threading, take the time to go through the user guide (linked above) and tutorials, there is one that shows you how to do multi-threading. |
Beta Was this translation helpful? Give feedback.
Please see our documentation, and follow the guidelines in our tutorials.
From the docs
If you absolutely need multi-threading, take the time to go through the user guide (linked above) and tutorials, there is one that shows you how to do multi-threading.