Browse the Ruby on Rails Community.

You are here: Forums Ask a Rails expert need your help or views for di...

Replytotopic

need your help or views for distributed programming with ruby

Posted in Forums : Ask a Rails expert

 
Dsc00495-medium;brt:55

Authority 37
Posting Rating 65
Sign in to rate this post

hi all,
greetings, I have came across a situation where I want to send sms (Text
Messages) and mails at a time to thousand’s/lac’s of users. The text may
be a security or traffic alerts so its needed that this should be sent
at a time so that the users may be able to receive them and make some
actions on it. The process I am following is to fetch 100 records and send them
sequentially, to fetch record, communicate with sms gateway, get
delivery report and save the sms status as sent in database takes near
about a second. I want to make this process as fast as to send the sms /mails at
time thr the distributed programming, COULD YOU PLEASE HELP ME BY
REPLYING WITH YOUR VIEWS OR IDEAS OR IF YOU HAVE CODED SAME, THEN
SHARING SOME OF THE CODE FOR ME?
Thanks In Advance
Saurabh Purnaye

 
N739949849_5167

Authority 12
Posting Rating 98
Sign in to rate this post

It really depends on how many concurrent requests your SMS gateway can process. If it’s only 1 or no concurrency at all, no amount of distributed programming can speed up the process.

 
Profile

Authority 0
Posting Rating 0
Sign in to rate this post

Erol,

true. I’d consider using threads (Yes, I know Ruby threads are not real threads…) but it has lesser overhead than DRb.
I LOVE DRb because it’s soooo simple yet powerful.

Replytotopic

Other Recent Topics

Ask a Rails expert : Ruby Builder

Ask a Rails expert : Better programming skills

Ask a Rails expert : Select Option

Ask a Rails expert : Updating ruby version on windows

Ask a Rails expert : Periodicall Ajax Calls and Session Expiry

Ask a Rails expert : Sub queries in RoR

Ask a Rails expert : Remembering associations

Ask a Rails expert : Keeping the databse clean

Ask a Rails expert : How to redirect single app to 2 different URLs

Ask a Rails expert : Dealing with nested models

Formatting Help
  • *bold*       _italics_      
    bq. (quotes)
  • "DSC":http://www.dsc.net
  • * or # (lists)
or cancel