Rails 3: returning a large amount of data to the user through the API

My application has an API that users can request data from. Sometimes this data takes time to process and interrupt my code.

I need a solution for this, and I was thinking of using delayed_job, but I'm not sure how this works. If the user makes a request, I need to give him an answer. Even if I process the data in the background, the call still has to wait until the job returns.

What is the solution for this? I am not sure how to do this.

thank

+2
source share
2 answers

Heroku 30 -, (, H12 H13 heroku).

.

  • , . 30 55 . . .

  • Callback URL- . , .

  • Codeglot, . , ping .

+3

, . Youtube, Vimeo, Facebook, Twitter, .

0

All Articles