What is the approach in the design of a web application?
What is the approach in the design/pattern in which the realization of such a scenario:
1) is There a web application that performs some long job (report generation, data analysis, and so on).
2) the client requests the execution
3) the Task goes to the queue
4) is Performed
5) the results are published in the ~temporary~ reference and the customer can pick it up there.
Interested in how to perform the last step. What are the approaches, technologies to implement, pitfalls... I Want useful articles, the literature. Can code examples.
Well, if in php then... for Example, first put on a classic server script to download files which generates temporary links and gives them to the users. Next, make a script that makes a report and puts it in a folder. The file name must be the client ID. Next, put a cron script which makes the scandir every 5 minutes for example. As a new file arrives in the folder it adds it to the database, he is the client ID can send a letter and say "Your report is ready here is the link (temporary) is valid for 1 hour".