I have an R script that takes in arguments and returns a float value based on this input. I need to convert it into a RESTful API so that it can be accessed via a URL GET call. I have looked into the same and came across some very promising looking alternates - Plumber , OpenCPU and Jug. However I need a solution that will be robust and stable ( I am expecting almost 150 thousand calls in 10 mins as of now - might move towards real time so will be a bit relaxed than this) . Kindly help me answer the following questions :
- How to make a webservice that won't crash on production in case of hige traffic?
- How else can I call an Rscript logic from a JAVA web service without making them tightly coupled? (The script has barely 15 LOC)
- Is there a performance difference when it comes to making RESTful API in R v/s that in Python ?
Please direct me to anything that will help me understand this in the right manner.
I am very new to the concept of web services so I apologize in advance in case I asked stupid questions.