Closed severo closed 5 years ago
@severo thanks for this PR.
It looks really good, and I especially like the refactoring to create very sensible objects for each of the downloads.
The limited-request-queue dependency requires Node.js 10 or greater. Pelias currently supports Node.js 8, however we're about to drop support for Node.js 8 as we add support for Node.js 12, so we'll have to wait to merge this until that happens.
OK.
Note that I tried to apply the minimum changes, but is there a specific reason to call system tools like curl and unzip, instead of using node modules?
Yes, we found using node modules to be extremely slow (Pelias often has to download and decompress very large archive files).
To be honest, I don't think the project goals include supporting other platforms like Windows that would require us to move to native Node.js code for downloads.
OK, thanks for the explanation.
An attempt to fix #433.