Scheduler Service is a JSON web service for invoking delayed triggers or jobs through callback URLs.
Once up and running, your clients can call this service with two parameters - callback_url and scheduled_for time. It will invoke the callback_url at the scheduled time.
Here is how you will do call the service in Ruby:
require 'rest_client'
require 'json'
# call example.com after 5 minutes from now
RestClient.post "http://service_server_name/jobs/new", { :url => "http://www.example.com", :callback_at => Time.now.utc + 300 }.to_json,
:content_type => :json, :accept => :json
- Sinatra
- MongoDB