Any way around single connection Transceiver?

120 views
Skip to first unread message

Ulugbek

unread,
May 24, 2011, 7:30:17 AM5/24/11
to ruby-smpp
Hi,

I have a rails app that has the logic to process the SMS messages.
Users of the app has wireless plans from 3-4 different local companies
(in asia). If I am not using any SMS aggregaters, would it be possible
to run multiple ruby-smpp Transceivers with separate connection to
each wireless service providers on a single VPS by running multiple
copies of the same rails app?

Thanks,
Bek

Ray Krueger

unread,
May 24, 2011, 8:33:14 AM5/24/11
to ruby...@googlegroups.com
We run multiple instances out of the same deployment per server. The starting and stopping of those instances is controlled by monit. Though we are likely going to move them to god some day.

Ulugbek

unread,
May 24, 2011, 9:27:31 AM5/24/11
to ruby-smpp
Thank you Ray for a prompt response. This is a good news for a noob
like me. If I understood correctly, you run multiple instances of the
ruby-smpp gateway on the same server, but not the multiple instances
of the rails app right? Because I was thinking that generating
multiple instances of the rails app for just the gateway maybe
inefficient. Do you have any recommendations/advice on how to set up
the config hash for each different instances of the gateway? (each
instance would be connected to different wireless service provider/
SMSC)

Thanks,
Bek

On May 24, 5:33 am, Ray Krueger <raykrue...@gmail.com> wrote:
> We run multiple instances out of the same deployment per server. The starting and stopping of those instances is controlled by monit. Though we are likely going to move them to god some day.
>

Ulugbek

unread,
May 24, 2011, 9:30:34 AM5/24/11
to ruby-smpp
Update: I am hoping that each instances of the gateway would have
access to the same ActiveRecord objects in the rails app so I won't
have to connect to database and write SQL.

RayKrueger

unread,
May 24, 2011, 10:40:27 AM5/24/11
to ruby-smpp
Our configurations are setup as hashes and an ENV var tells the app
which config to use when it starts. Our Smpp daemons are run out of a
rails app at deployment as well.

Have a look at using God to start/stop http://god.rubyforge.org/
Specifically read the "non-daemon" stuff.

Ulugbek

unread,
May 27, 2011, 4:33:48 PM5/27/11
to ruby-smpp
I was able to run multiple instances of the gateway and connect to
simulator. I am using God with resque workers, and will try to start
the instances with "ruby gateway.rb" etc. Thanks!

On May 24, 7:40 am, RayKrueger <raykrue...@gmail.com> wrote:
> Our configurations are setup as hashes and an ENV var tells the app
> which config to use when it starts. Our Smpp daemons are run out of a
> rails app at deployment as well.
>
> Have a look at using God to start/stophttp://god.rubyforge.org/

Ray Krueger

unread,
May 27, 2011, 5:15:09 PM5/27/11
to ruby...@googlegroups.com
That gateway thing is just a sample. Not sure anyone has tried to run that in a very long time :P

-Ray

On Friday, May 27, 2011 at 3:33 PM, Ulugbek wrote:

> I was able to run multiple instances of the gateway and connect to
> simulator. I am using God with resque workers, and will try to start
> the instances with "ruby gateway.rb" etc. Thanks!
>

Ulugbek Baymuradov

unread,
May 27, 2011, 5:54:23 PM5/27/11
to ruby-smpp
I will run it (or a few of them together) for some time and post my
working configurations in the near future :)

Bek
Reply all
Reply to author
Forward
0 new messages