A
A
Anton Martsen2015-03-01 22:39:34
Software design
Anton Martsen, 2015-03-01 22:39:34

What is the name of the approach in designing a web application?

Hello!
What is the name of the design approach / pattern in which such a scenario is implemented:
1) There is a web application that performs some kind of long job (generating a report, analyzing data, and so on).
2) The client requests its execution
3) The task goes to the queue
4) In progress
5) The result is published via a ~temporary~ link and the client can pick it up there.
Interested in how you can perform the last step. What are the approaches, technologies for implementation, pitfalls ... I would like useful articles, literature. Possible code examples.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
asdz, 2015-03-01
@martsen

Scheduler Agent Supervisor Pattern

O
Optimus, 2015-03-01
Pyan @marrk2

> how you can perform the last step
Well, if in php then... For example, first we put on the server a classic script for downloading files that generates temporary links and issues them to users. Next, we make a script that makes a report and puts it in a folder. The file name MUST contain the client ID. Next, we put a cron script that makes scandir once every 5 minutes is acceptable. As soon as a new file appears in the folder, he adds it to the database, he can also send a letter by the client ID and say "Your report is ready, here is the link (temporary) valid for 1 hour."

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question