I have a process that makes a match between the items [books, movies, songs and games] of a certain user on Facebook with the items registered in my database. The problem is that the whole process takes around 18 ~ 25 seconds and I would not want to leave the user waiting that long.
I was thinking of how to log in with your Facebook account, trigger type a thread (I do not know if it is possible in RoR) and redirect it to root_path
and when the process ends up displaying a div
some message .
How should this be done in Ruby On Rails, that is, is there any gem for this purpose or some good practice for it?
Thank you in advance ..