A
A
aesfur2019-03-27 20:59:22
Amazon Web Services
aesfur, 2019-03-27 20:59:22

How to correctly implement feed on django, drf and aws?

Project in Django and DRF in aws. Files on aws s3.
Task: we need a feed with content (pictures, videos, animations).
Each picture should have several thumbnails with different sizes.
GIF and video must be converted to mp4.
How it is better to implement, so that the performance / query time does not sag?
Thoughts:
Convert think when saving.
For thumbnails, I'm thinking of using https://github.com/jazzband/sorl-thumbnail, but I'm not sure how to make it smarter.
sorl makes a cache of thumbnails. Leave it also on s3 or do you need something like redis?
In post_save, is it worth cutting the thumbnails into the cache right away?
Maybe someone will tell you good practices or articles on this topic, or just throw a couple of thoughts, I will be grateful.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Shumov, 2019-03-27
@inoise

Pictures are compressed via [email protected] on the fly and cached in the same CDN. Video can be compressed either when uploading to s3 via an event trigger, or you can use rtmp in Cloudfront (they generally have a ton of options for broadcasting video)
And do everything else as you want)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question