#Volumes and tmp storage space

15 messages · Page 1 of 1 (latest)

light plume
#

I'm working on an Adonisjs v6 project that's a media app handling large video files, most of the files will be manageable 150-200mb or less, but in the outside chance that user's try to upload significantly larger files multiple gb, would I have to use a volume, and then I'm limited by the volume restrictions by my account tier? 5gb what are my options for processing file uploads on the server?

I'm using S3 for long term storage, but Adonis has built in validators for multipart file uploads and if possible I'd like to keep the upload code as simple as possible for now, and also, that leaves the door open to do some processing and validation with ffmpeg if I wanted. I know s3 presigned urls are also an option later on, but was wondering if anyone had any insights into working with large files on railway deployments

warm starBOT
#

Project ID: N/A

light plume
#

N/A

elder vine
#

Volumes should be used specifically for data you want to stick around between deploys, eg. long term storage

#

since you already have a long term storage solution, you shouldn't need volumes for storing video

#

Depends on what your app is doing tbh. If it's processing the video and sending it back, then you shouldn't need volumes

light plume
light plume
dim lynx
#

Hobby users get a soft limit of 100GB for the ephemeral storage, so you are good there

light plume
dim lynx
#

one thing to note would be that there is a limit of 5 minutes for http requests, aka if an upload takes longer than 5 minutes the connection is dropped

light plume
dim lynx
#

thats chunked uploads? if so, yes thats exactly what you want to use!

light plume
#

perfect! thanks for the help and quick responses too!

dim lynx
#

no problem!