A
A
Anton Ivanov2017-05-17 21:23:46
Ruby on Rails
Anton Ivanov, 2017-05-17 21:23:46

Which solution to choose for simultaneous download of large files?

Hello.
The main application is written in Rails. Users can upload large files (up to 700 megabytes).
How to organize simultaneous download of files so that the site (main application) continues to work?
Let's say 50-100 people can load at once. Not a very large number, but there won’t be enough puma threads for everyone, and the site will stop working :)
There was an idea to use a node for this, but I remember that it’s good to use a node for fast and small tasks (it didn’t work closely with a node, so, several small applications for adding comments and other small tasks)
Please tell me :)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Hukendo, 2017-05-17
@Fly3110

Well, if you are talking about a node, then you obviously have a reverse proxy, so let it load.
You can use the node because of its asynchrony, but there is one thing. If one core of your CPU cannot fully utilize the performance of your storage (hdd / ssd), then it will be idle and then you need to run several instances of the node.

V
vsuhachev, 2017-05-23
@vsuhachev

Buy file hosting (for example, on Amazon) and upload directly to it, your server will only store links to files in the cloud

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question