0

I have written an app that I am not happy with. Essentially it queries the Facebook API in a few ways:

  1. Gets a list of all posts
  2. Retrieves each post
  3. Retrieves each posts comments

I can get a list of all posts in 1 API request, but I've nested each subsequent API request in a loop. I'd like to do this all at once, and is there any reading on sending all the requests at once, and then handling the API requests as they come in?

I'm looking for reading, GEMS, suggestions at strategies.

Thanks!

JZ.
  • 21,147
  • 32
  • 115
  • 192
  • Could you clarify what you mean by "sending all the requests at once, and then handling the API requests as they come in?" – rlkw1024 Mar 01 '11 at 21:18

1 Answers1

1

Take a look at the answers here: What is the preferred way of performing non blocking I/O in Ruby?

Good options seems to be:

Community
  • 1
  • 1
avaynshtok
  • 2,519
  • 1
  • 16
  • 14