0

This question is a continuation to questions I have asked previously with regard to printing documents via Word on Windows from Laravel.

My issue was that I did not want to launch the necessary printing tasks within a POST request as this would show no feedback of the task, and would only respond once the task completed.

For example, if I called the POST /pledge/submit route, I would not want to call the necessary tasks for printing within that same request for the route.

Now, I see that Laravel 4 has a facility called Queues, which (I assume) would allow me to background process these tasks, and postpone them until a later time.

Having read through the documentation, I see that it supports four different drivers, one of which is sync.

Question: Can I use this driver to create new print jobs in the queue, and have them executed by an external application (such as one created in Delphi)? The app would periodically check to see if there are items in the queue, and then execute them (and, of course, remove them).

I am simply trying to find the best way to publish documents without the end-user having to wait for the page to respond whilst printing is underway. Further, I am new to queues in PHP, and am not familiar with how they work (in so far as a detailed process flow). If someone could also explain this, I would appreciate it very much.

4

1 に答える 1