Caching large static files for quick serving on Heroku

299 Views Asked by At

I recently deployed a Flask app on Heroku. Right now the backend is all managed through MongoEngine. I have an issue though, which is that I have some fairly large static files (about 30 Mb in total) which I need to load very quickly. (It's an ML system).

I can't really find any documentation around how I would approach this, so any help would be appreciated. Also if I'm asking the wrong question please let me know. I'm basically just looking for a very fast way to load static files on a Heroku App.

1

There are 1 best solutions below

2
On BEST ANSWER

Serving static assets of AWS S3 is the recommended approach.