Filed in archive
Programming
by jason on February 2, 2006

First, one thing that I would like to do with Ruby on Rails is create a web services client that my application could use to consume exposed services with on the Internet. I'm thinking along the lines of creating mashups etc... but I cannot find any examples of this type of thing having been done. Here I think of something along the lines of Apache Axis in Java.
Second, I really wish there was some way to encapsulate a scheduler inside my web application. For some reason I would have thought that it would be easy to spawn a process that would be able to fire off tasks at predetermined times somewhere in the background. I've been told though that this is not possible with RoR and that I would need to use Cron or AT to accomplish something like that with Rails. Here I'm thinking of the ability to fire off emails based on data in a database or... to fire off a request to some web service store the results in a database. I think of the Java Quartz scheduler as I write this now.
Anyway, during my travels in the Rails world I've run into these things. I keep my Eyes Open to see if anyone else has run into these issues as well but I have not seen anyone bring them up.
Permalink: Two Things Ruby on Rails Does Not Have
Trackback: http://publish.creative-weblogging.com/publish/mt-tb.pl/14894
Mr Wong
Vote for Two Things Ruby on Rails Does Not Have:
|
Rating: 5.20 out of 5 vote(s) cast.
|
Response from:
SF
(02/03/06 5:48am)
Take a look at the "Putting Flickr on Rail" screen cast at http://www.rubyonrails.org/screencasts
Response from:
Jason
(02/03/06 8:32am)
Thanks Dan and SF.
Here is another link that someone emailed me on this subject of using web services with Ruby on Rails.
http://www.roryhansen.ca/2005/07/18/amazon-web-services-on-rails/
As far as the scheduler goes it looks as if that is simply not possible with Rails.
Jason
Here is another link that someone emailed me on this subject of using web services with Ruby on Rails.
http://www.roryhansen.ca/2005/07/18/amazon-web-services-on-rails/
As far as the scheduler goes it looks as if that is simply not possible with Rails.
Jason
Response from:
Coda Hale
(02/20/06 9:11pm)
As for running background processes for schedulers and the like, it's quite easy to share a singleton schedule manager via a separate dRuby process. We're talking maybe 100 lines of code, tops. Not terribly straight forward, but it'll do.
Enterprise Integration with Ruby, which is in beta from Pragmatic Bookshelf, has great sections on both web service clients and dRuby.
It's not really Rails, per say, but rather Ruby functionality.
Enterprise Integration with Ruby, which is in beta from Pragmatic Bookshelf, has great sections on both web service clients and dRuby.
It's not really Rails, per say, but rather Ruby functionality.
Response from:
Saurabh Chandra
(07/03/06 12:46am)
You can also try rails_cron for a ruby based scheduler.
http://svn.kylemaxwell.com/rails_cron/trunk/README
http://lists.rubyonrails.org/pipermail/rails/2006-February/016666.html
cheers
Saurabh
p.s. I have not used it so far, but am going to soon
http://svn.kylemaxwell.com/rails_cron/trunk/README
http://lists.rubyonrails.org/pipermail/rails/2006-February/016666.html
cheers
Saurabh
p.s. I have not used it so far, but am going to soon
Response from:
Adam
(08/15/06 6:41pm)
For scheduling you might look at moment http://rubyforge.org/projects/moment/
I haven't used it yet myself but a quick look at the docs shows creating events using cron-like syntax.
I haven't used it yet myself but a quick look at the docs shows creating events using cron-like syntax.
Response from:
Andre
(09/12/07 2:00pm)
rails_cron<http://kylemaxwell.typepad.com/everystudent/2006/09/railscron_depre.ht
ml>
has been deprecated as of 2006-09-08.
It has been replaced by daemon_generator <http://kylemaxwell.typepad.com/everystudent/2006/08/after_writing_r.ht
ml>
"moment" development seems to be static right now (2007-09-12) another option for scheduling tasks is
backgroundrb <http://backgroundrb.devjavu.com>
ml>
has been deprecated as of 2006-09-08.
It has been replaced by daemon_generator <http://kylemaxwell.typepad.com/everystudent/2006/08/after_writing_r.ht
ml>
"moment" development seems to be static right now (2007-09-12) another option for scheduling tasks is
backgroundrb <http://backgroundrb.devjavu.com>
Response from:
Andre
(09/12/07 2:01pm)
rails_cron < http://kylemaxwell.typepad.com/everystudent/2006/09/railscron_depre.ht
ml
> has been deprecated as of 2006-09-08.
It has been replaced by daemon_generator < http://kylemaxwell.typepad.com/everystudent/2006/08/after_writing_r.ht
ml
>
"moment" development seems to be static right now (2007-09-12) another option for scheduling tasks is
backgroundrb < http://backgroundrb.devjavu.com
>
ml
> has been deprecated as of 2006-09-08.
It has been replaced by daemon_generator < http://kylemaxwell.typepad.com/everystudent/2006/08/after_writing_r.ht
ml
>
"moment" development seems to be static right now (2007-09-12) another option for scheduling tasks is
backgroundrb < http://backgroundrb.devjavu.com
>
Response from:
Andre
(09/12/07 2:03pm)
rails_cron http://kylemaxwell.typepad.com/everystudent/2006/09/railscron_depre.ht
ml
has been deprecated as of 2006-09-08.
It has been replaced by daemon_generator http://kylemaxwell.typepad.com/everystudent/2006/08/after_writing_r.ht
ml
"moment" development seems to be static right now (2007-09-12) another option for scheduling tasks is
backgroundrb http://backgroundrb.devjavu.com
ml
has been deprecated as of 2006-09-08.
It has been replaced by daemon_generator http://kylemaxwell.typepad.com/everystudent/2006/08/after_writing_r.ht
ml
"moment" development seems to be static right now (2007-09-12) another option for scheduling tasks is
backgroundrb http://backgroundrb.devjavu.com
Response from:
tombola bingo
(09/15/09 5:37am)
Yes search this key word Putting Flickr on Rail and you will get your desired result.
Subscribe
Use the search to look for other interesting posts
| RSS | See all blog subscribe options |
|
What is RSS? | |
| Yahoo! |
|
| Addthis |
|
| Bloglines |
|
| Newsletter | |
| Follow us on Twitter! |










