vendredi 13 octobre 2017

How to handle a lot of PDF generations in a Laravel based application

I'm just curious how would you handle a scenario where a lot of PDF's has to be generated and be send to the user. You're not able to temper with the PDF because it needs to be 100% secure or close to that number.

For example the PDF contains the order you just made in a webshop, proof of purchase or something like that.

The application will have a lot of concurrent users. For this question I will use Laravel as a base platform for the web application.

I had the idea of running a cron job at night that will generate all this PDF's at once and send per e-mail.

What is considered best practise in this scenario?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire