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
source
share