Topic: Sending data from "Ruby application" to "Rails 3 application"

I have an application which consist from two pieces:

1. Is Ruby based daemon (in advance multiple daemons on different servers);
2. Is Rails 3 app.

I need suggestion of technic/best practise: how to send data (in XML or JSON format), from "Ruby daemon(-s)" to one "Rails 3 application".

One solution I had thought is: sending data via POST request (from Ruby daemon), but possibly it is not so clean. Other to open socket in rails app, and listen for incoming data.

I will appreciate any suggestion.

Last edited by maxxet (2012-06-06 18:04:51)