I have a situation on the front end where a user clicks on “Download” button and the query behind the scenes is going to take over a day. I have a Spring boot web app running as far as web services are concerned.
What I want:
When the download button is clicked on the front end, I would like to put this process in some sort of queue. I believe putting in the queue is the only option. And when the download is completed, it should dump the file at some server location.
In order to do this, I have been suggested by someone that I should use JMS. So basically, I need to integrate the JMS feature with the RESTful web service. I haven’t used JMS before and hence wondering :
1) Is JMS a good approach to use in this scenario? 2) If yes, then do I need to put this JMS thing talk to specifically one web service, which in my above case would be the web service responsible for downloading the stuff when download button is clicked? 3) Any other approach if possible or recommended over this?
Please let me know if I can answer more questions.