Skip to content

Handle Large Number of Concurrent Downloads #649

Open
@iRajatDas

Description

@iRajatDas

I encountered an issue with the download links generated by the API. When I create 7 download links and attempt to access the 7th link, it keeps loading in the browser tab until the previous 6 downloads complete.

image

Steps to Reproduce:

  1. Create 7 download links using the following command:

Yes, the below curl will work until sometime for testing

curl 'http://<redacted>:9000/api/json' \
  -H 'accept: application/json' \
  -H 'content-type: application/json' \
  -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36' \
  --data-raw '{"url":"https://www.youtube.com/watch?v=LXb3EKWsInQ","vQuality":"4320","filenamePattern":"basic"}'
  1. Click on the 7th download link.

Expected Behavior:

The 7th download link should start downloading the video immediately without waiting for the previous 6 downloads to complete.

Actual Behavior:

The 7th download link keeps loading in the browser tab until one of the previous 6 downloads complete.

Additional Information:

  • OS: macOS
  • API Endpoint: http://[redacted]:9000/api/json
  • Server Configuration: DigitalOcean droplet with 25GB SSD storage and 1 GB RAM running Ubuntu 22.02
  • Using PM2 Manager for running the API
  • Node 18

I know the server is not that strong, but I did not find the best documentation for it either.

Please let me know if any additional information is needed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions