heroku - Sending SMS from rails app -
i building medication reminder system using ruby on rails deployed on heroku.
using system doctor enter patient's medication details including medication name, dose timing details , app notify patient via sms when time take his/her medicine.
i have developed application stuck on sms part since involves running process on , on again until medication's period has elapsed.
i want able run script rails app repeatedly query database , when time send sms dispatch patient. cannot function in normal request/response web cycle.
i explored rubygems allow developers create background jobs such rufus scheduler , resque can't seem figure out how go doing this.
please open types of suggestions. using twilio sending sms
i don't know resque/rufus, know sidekiq has ability queue jobs, have them delayed till time.
https://github.com/mperham/sidekiq/wiki/delayed-extensions#advanced-options
you'd need how exact delay (ie. sidekiq's polling frequency is) depending on needs, suspect work well.
it require dynamo or whatever heroku calls these days.
Comments
Post a Comment