16
Views
2
Comments
Solved
[FileSystem] Speeding Up Video Uploads and Playbacks in OutSystems
filesystem
Service icon
Forge component by João Portela
Application Type
Reactive

Hello OutSystems friends, I have a question and would like to seek your assistance. In my project, there's a requirement where users will upload video files, possibly in sizes exceeding hundreds of megabytes, and they also need to be played back. I've encountered two issues:

1. The upload speed is too slow. Currently, I'm using the "upload" component to upload the videos, and then storing them using the "FileSystem" to a server directory. Storing in the database is not a good solution due to the large number of videos and their size.

2. When playing the videos, it takes a long time to load before playback, rather than streaming the content. I'd like to know if it's possible to make the API support streaming.

I greatly anticipate and appreciate your assistance and support. Thank you very much.

Solution

Hi, you already discovered it yourself. You should store video files on your frontend servers. Neither in the database nor on the filesystem. I suggest to use S3 in combination with cloudfront for serving video files. Please see my following articles

Uploading files directly to S3 from client application

https://medium.com/itnext/file-uploads-from-outsystems-reactive-web-client-to-aws-s3-using-pre-signed-urls-18e9a42dee17

Serve files at scale with s3 and cloudfront

https://medium.com/itnext/serve-files-at-scale-with-outsystems-and-aws-s3-and-cloudfront-6f0b11a37866

Best

Stefan

I understand. Thank you very much, Stefan


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.