-1

I have a Django backend and a SvelteKit frontend. Media files are being stored within an Object Storage. My Django Rest serializers use the invididual objects' key to generate a presigned url and grabs it from the object storage and sends the link to the user.

The problem I'm having is when multiple users try to access the same object or one user tries accessing the same object while the presigned url is not expired yet. Am I making a fuzz about something that won't be a problem in production or would it be best to generate presigend urls for let's say 10 minutes, store key, url and expiry timestamp in an in-memory db like redis and use that as a caching mechanism in case the link to the object being accessed is still available?

fullstacknoob
  • 161
  • 1
  • 7

0 Answers0