HighDots Forums  

streaming, xml and daemons

Ruby On Rails Talk Ruby On Rails programming language mailing list


Discuss streaming, xml and daemons in the Ruby On Rails Talk forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
c-a
 
Posts: n/a

Default streaming, xml and daemons - 11-06-2009 , 04:27 PM






Hi everyone,

I am trying to find a way to use the new twitter streaming API
(continuous XML or JSON stream) in a ruby/rails project.

I want to grab the stream on my server, process it with different
algorithms, and then output the result to whoever has the flash front
end and is asking for it.

I was suggested the xmpp protocol, but I might not have time to
investigate this path... So I figured I could simply put a timer on
the client and ask periodically the server for a bunch of "processed
stream" through a regular http request...

I therefore believe that I will always have a process running (at
least as soon as someone requests something at least). My algorithms
are not a problem, I am getting the stream in real-time from a ruby
script, BUT the part that leaves me clueless is how can I do all this
processing only in a fixed amount of memory on the server and send it
whenever someone asks for it. Of course, at one point the old
processed elements get overwritten by new ones.

How can I pass information from the memory being handled by a daemon
to a rails app?
Perhaps I simply don't understand something and I am asking the wrong
question, but any pointers would be greatly appreciated.

Thank you

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk (AT) googlegroups (DOT) com
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe (AT) googlegroups (DOT) com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.