V
V
Vitaly Igorevich2015-07-08 19:27:50
Nginx
Vitaly Igorevich, 2015-07-08 19:27:50

Will there be problems with the availability of the application when dynamically uploading large files?

It is necessary to distribute a large number of files not through a direct link, that is, through the application controller. Before and after the end of the download, you need to log certain information. Can a situation arise when, for example, n files are downloaded at one time and the application becomes unavailable because all the workers are busy? Or am I misunderstanding how it works?
Framework: Ruby on Rails
Server: Nginx

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Viktor Vsk, 2015-07-08
@dev1vitaly

You understand correctly, the workers will be busy until they give the content.
Services like Amazon S3, Viddler, Google drive, Dropbox, etc. have been created for such things.
Briefly: you, using your account data (Api key, access token), generate an access token (a certain one-time url) for downloading / uploading private content
Of course, this is relevant if the content is private.
If you have files in public (for distributing nginx) and you are satisfied that everyone can download them, and logging - only if downloaded from the web interface and a javascript (very unstable solution) sent a callback, they say, "downloaded" - then there are problems with workers will not.

A
Alexander Melekhovets, 2015-07-08
@Blast

Google nginx X-Accel-Redirect. Using this thing, you can check access in the application and then directly shift the return to nginx. We have already said about tracking the end.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question