At the end i decided to implement oma's solution using parallel. We will see how it goes in the long term, but i think is a good solution given that we are not having a lot of visits right now so having a dyno attached for about a second is not a big problem, but i prefer a dyno attach for 1 second that making the user wait for 5.. I guess later i'll have to move to background jobs.
Thanks everyone for your suggestions. On Nov 5, 6:38 am, oma <[email protected]> wrote: > I did an experiment with parallel on heroku, pretty basic. Check the > results out at > > http://olemortenamundsen.wordpress.com/2010/10/17/spawning-multiple-t... > > Let us know what you end up doing, I'm interested. > oma > > On 4 Nov, 17:57, Brian M <[email protected]> wrote: > > > > > > > > > One option to consider is Typhoeus. > > >https://github.com/pauldix/typhoeus > > > I've used it with success to do parallel queries to the Twitter API. > > > I haven't tried using it on Heroku. > > > Brian > > > On Nov 2, 12:39 pm, Alejandro Cadavid <[email protected]> wrote: > > > > Hi guys, > > > > I'm building an app which basically query several APIs (about 6-7) > > > based on some words the user inputs in a form and compares the results > > > between them. I'm not actually saving the data to the database, just > > > calculating some stuff and displaying the results to the user. My > > > question is, is there a good way in heroku to "parallelize" those HTTP > > > requests? Right now i'm just doing one after the other. I read about > > > delayed_but i'm not sure about it because i don't know how long would > > > it take to start processing the requests as soon as they arrive.. i > > > don't want to make the user to wait for a longer time.. but i'm not > > > really sure if my guess is correct. Any other suggestion about this? -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
