3 ms·
Just a digital ocean droplet running FreeBSD, then PM2 running Node.JS and ImageMagick built with multicore support.
by slowenough 7y ago
Just a digital ocean droplet running FreeBSD, then PM2 running Node.JS and ImageMagick built with multicore support.
- z92 7y agoImageMagick with "multicore" support won't speed things up the moment number of concurrent requests touches the number of cores you have. And in digital ocean's case you have only one core.
- mlyle 7y agoSure, but if your concurrent number of fully tendered requests at least sometimes dips below the number of cores, it is a big win. (At the possible cost of top-end scale; improving response to normal workload significantly and hurting the top workload reachable somewhat).
- slowenough 7y agoActually I created a Droplet with 6 cores
- Koshkin 7y agoBut remember that multi-threading was shown to improve performance in the era of single-core computers.
- kodablah 7y agoOne wonders if you can WASM-ify ImageMagick and the use a JS FileReader and a canvas or other PNG output approach to do this all client side. Hrmm, I might tackle this myself if I get the time...
- johnsonjo 7y agoLooks like someone has gotten pretty far WASM-ifying ImageMagick already [1]! [1]: https://github.com/KnicKnic/WASM-ImageMagick https://github.com/KnicKnic/WASM-ImageMagick