Have a basic requirement, whereby after the user submits product/other details on checkout and they are sent to the server, the order is processed/created and I then need to send a bunch of emails.
I want the server to respond/return to the client that the order has been successfully placed immediately after the order and payment has been processed, but the email sending job will continue on the server without having to return anything to the client.
Would my best bet be to use the Laravel Task Scheduler via kernel.php and have it check for updates to orders table on a minute by minute basis and if new orders detected send those emails out.
Or can I skip the Task Scheduler altogether and simply return a status 200, success response to the client, but have the code continue executing on the server, sending those Emails out ?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/28Qts3U
via IFTTT
Aucun commentaire:
Enregistrer un commentaire