Persistent sessions between connections

Kezzel Source

I would like to achieve a setup where http queries to an apache server sends data to RServe and results are returned. The data send should be stored in a workspace such that it is not necessary to setup everything in R each time (including some heavy computations).

In windows Rserve behaves in a cooperative mode where the workspace persists between connections, however the default mode (compiled in) in linux is that every connection is forked into a new child process with its own workspace. Closing the socket seems to kill the child process and thereby the workspace.

What would be a good way to achieve this?

I am aware of FastRWeb however it seems to be using Rserve underneath and thus the same problems.

By the way I am currently using to connect to Rserve, however I am open for other suggestions.

Thanks in advance.



comments powered by Disqus