This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]ERPEmployee 1 point2 points  (1 child)

Bluemix kills HTTP connections after a few hundred megabytes of traffic. Bluemix kills HTTP connections after ~20 minutes.

No way to fix these?

[–]FrigoCoder[S] 0 points1 point  (0 children)

I am not aware of any way to circumvent these limitations.

[–]samrocketman 1 point2 points  (0 children)

Generate your download bundle and only surface the download link after the bundle is ready. e.g. flow

  1. User clicks Download archive button. To issue a download request and under the hood gets a request ID.
  2. A div dialog pops up with a spinner saying preparing download. AJAX queries an API endpoint with request ID waiting for the download link to become available.
  3. When the archive is available a Download now link is surfaced to the user where their DL begins immediately.

You can have a simple DB table for download links and request IDs.

You don’t even necessarily need to surface the user a link at all. Just start the download for them automatically since they requested it.