I need to create a django web portal where users can select and run custom reports by providing values ββthrough forms for the parameters defined in each specific report. A view that handles requests for user requests should make RESTFul service requests to the remote Jasper report server, where the actual result is generated.
I already wrote a client to make RESTful requests to a remote server. Depending on how large the report is, the call to the service may take several minutes.
What is the best method for calling the service after the user form has been verified so that the processing process asynchronously (in the background) and the user can continue to use the web portal while creating its report.
Do I need to make an AJAX call when submitting the form of parameters, or should I start a new thread for the RESTful client in the view after the form is validated? Or something else?
source share