Polling Get Requests

13 views
Skip to first unread message

newtriks

unread,
Nov 24, 2011, 4:46:27 PM11/24/11
to Juggernaut 2
Hi,

I am building an app which I have been looking at using node.js. I am
now considering Juggernaut as an alternative and am wondering if it
would be a good move and if someone could offer some heads up on the
below.

I want to poll a service on my server performing a GET request, the
response being some data as json. I originally was gonna set up an
interval in JS using node.js (1 minute polls). Then I want to store
the received (JSON format) data from the GET request in a mongo.db.

A separate rails app will then display the data.


Sooo, I like the non-blocking aspect of both Juggernaut and node.js
but am wondering how to set this logic up in Juggernaut i.e. polling
logic with set delay and GET request? Is there something special I
could harness from juggernaut that could simplify and optimise this?

Cheers,

Simon

Reply all
Reply to author
Forward
0 new messages