How many requests can be processed concurrently by R OpenCPU
I'm new to OpenCPU, I'm looking at the docs at https://www.opencpu.org/ . It looks like OpenCPU can handle HTTP requests at the same time? I'm asking because R only has single-threaded mode and how many requests can it handle at the same time?
Thank.
+3
source to share
1 answer
If you run Apache
on a based opencpu-server
, there is no limit to the number of parallel requests. You can adjust the number of workers in the prefork settings .
A local single-user server in R, on the other hand, uses only one R process. You can still execute parallel requests, but they will be automatically queued and processed one by one.
Either way, you don't have to worry about this in the client.
+2
source to share