Technological journey's of a lonely African Programmer
In: Ruby on Rails
24 Mar 2010After the launch of a recently developed application MYtxtBOX Lite, which allows free sms service online to all mobile networks in Ghana. Do to the nature of the SMS gateway which was the traditional style HTTP post or get request, the application takes a long time to respond to the user since the initial code was manually hitting the SMS gateway with the help of the rio plugin. This made the end user part of the network handshake proccess between application server and the SMS gateway server.
We needed a way to speed this process up and make sure HTTP request is also successful. So we moved the rio process into a Model and added a Delayed_job functionality on Model in the Controller class. This ensures that the end user doesn’t become part of HTTP request process and the HTTP request is added to a queue on the server which is then sent by the delayed_job daemon.
These are the benefits I have had from this approach.
Just tackling programming nightmares with flares. Sometimes the tactics are smooth sometimes their rough.