When asked by the admin, my Heroku worker generates a report, compressed as a ~10MB ZIP file.
Generation takes about one minute, so it is done by delayed_job
.
Once generation is done, where to store the file so that the web dyno can serve it?
tmp
folder is not the same from one dyno to another, it seems.Is there no option besides storing the file in the database and paying to switch from 5MB to 20GB database?
Note: There is only one admin, and generating the report is a rare event.
What about just uploading the file onto Amazon S3 and having it accessed from there?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With