I am developing a web application and I would like to perform two kind of statistical/modeling operations.
我正在开发一个web应用程序,我想执行两种统计/建模操作。
(1) Batch analysis from data stored in the backend of my app (HBase cluster). Typically, this operation needs to be performed on regular basis, say every night. The size of the data may exceed what can be stored in local memory, so this might need the invocation of some package supporting parallel computing. (2) On the fly R execution triggered by a user request in the front-end. Typical use case include forecasting of small time series. Users may place requests in the same time so there should be some support for concurrency. The performance is of paramount importance because the user can't wait indefinitely for the response to come.
(1)来自我的app后台(HBase cluster)的数据的批处理分析。通常情况下,这种手术需要定期进行,每天晚上都要这样做。数据的大小可能超过存储在本地内存中的数据,因此这可能需要调用一些支持并行计算的包。(2)在前端由用户请求触发的飞行R执行。典型的用例包括对小时间序列的预测。用户可以同时发出请求,因此应该支持并发性。性能是至关重要的,因为用户不能无限期地等待响应的到来。
My question is : what would be the best combination of technologies/CRAN package to address those two problems ? My idea for the moment is :
我的问题是:如何最好地结合技术/CRAN包来解决这两个问题?我现在的想法是:
- Using Rserver in combination with a Ruby client. Alternatively, I am thinking about writing myself the server in Java and using existing R/Java bindings.
- 结合使用Rserver和Ruby客户端。或者,我正在考虑用Java编写服务器,并使用现有的R/Java绑定。
- Using RHadoop to handle jobs on big datasets.
- 使用横线处理大型数据集上的作业。
I saw RevoDeployR is a great tool but is not open source, isn't it ?
我认为RevoDeployR是一个很好的工具,但是它不是开源的,不是吗?
Thank you for your help
谢谢你的帮助。
3 个解决方案
#1
5
I would recommend using RApache (http://rapache.net/) together with R package RJSONIO or rjson
我建议使用RApache (http://rapache.net/)和R包RJSONIO或rjson
#2
4
Take a look at the Rook package. It can turn any R session into a web server. It is quite simple and, in fact, used in Rapache.
看看车的包装。它可以将任何R会话转换为web服务器。它非常简单,实际上在Rapache中使用。
EDIT
编辑
Since my first answer I have started to use shiny. It's a great package for creating dynamic, complex, AJAX-driven web pages with a high level R interface, without the need to go into HTML at all or almost at all.
从我的第一个答案开始,我开始使用闪亮。它是一个很棒的包,用于创建动态的、复杂的、ajax驱动的、具有高水平R接口的web页面,而不需要进入HTML或几乎不需要进入HTML。
#3
0
I have tried shiny from RStudio and it works like a charm
我尝试过RStudio的“闪亮”,它就像一种魅力
#1
5
I would recommend using RApache (http://rapache.net/) together with R package RJSONIO or rjson
我建议使用RApache (http://rapache.net/)和R包RJSONIO或rjson
#2
4
Take a look at the Rook package. It can turn any R session into a web server. It is quite simple and, in fact, used in Rapache.
看看车的包装。它可以将任何R会话转换为web服务器。它非常简单,实际上在Rapache中使用。
EDIT
编辑
Since my first answer I have started to use shiny. It's a great package for creating dynamic, complex, AJAX-driven web pages with a high level R interface, without the need to go into HTML at all or almost at all.
从我的第一个答案开始,我开始使用闪亮。它是一个很棒的包,用于创建动态的、复杂的、ajax驱动的、具有高水平R接口的web页面,而不需要进入HTML或几乎不需要进入HTML。
#3
0
I have tried shiny from RStudio and it works like a charm
我尝试过RStudio的“闪亮”,它就像一种魅力