Huge File Uploads On Amazon S3 – Rails With Dropzone on Unicorn + Nginx + Sidekiq

Amazon S3-Rails With Dropzone on Unicorn + Nginx + Sidekiq

What is it …

Almost every second web application has a requirement for allowing users to upload large file. With huge internet bandwidths available and all applications in the cloud, it is expected that the user must be able to upload large data to the web application.

While working on a web application which deals with banking domain, we need to have such a feature where users might be uploading their huge files at the same slot of the day! Each user may upload files from 500 Mb to 2 Gb, and this is critical for the growing number of end users for this web application in the last few months!

.. and how we took the path ?

OK, understood, our Rails application is not having that big code-base or features for now, and also not a huge user-base. But the number is increasing at the double pace each month than it was before 6 months! That means we would have almost three times the users in next 2 months and if this feature is not implemented correctly then the performance could be affected.

We have started testing the application with growing the upload file size, each time we are trying with 500 – 900 Mb files in a single go where each file could be of maximum 100 Mb. OK, works fine, but when we goes up 1 GB or when the net speed is slower it started failing!

And, its done as expected! Now we can upload 1.5–2GB of total files at once even with a 4GB RAM cloud server! End user does not have any difference than before, they are able to see the file uploading progress and server never complaints about timeout!

Summary

Click here for more details…

At BoTree Technologies, we build enterprise applications with our RoR team of 25+ engineers.

We also specialize in Python, RPA, AI, Django, JavaScript and ReactJS.

Consulting is free – let us help you grow!

Related posts

Using Handlebars JS with Ruby on Rails!

byAnkur Vyas
7 years ago

Python web programming for Blockchain Development

byParth Barot
4 years ago

Ruby on Rails vs Node.js: A Detailed Comparison

byShardul Bhatt
1 year ago
Exit mobile version