3 ms·
We had issues running our Node app on alpine. Specifically the dns lookup for our API calls were taking several hundred milliseconds *every* time. Switching to
by tpaksoy 4mo ago
We had issues running our Node app on alpine. Specifically the dns lookup for our API calls were taking several hundred milliseconds *every* time.
Switching to debian reduced it to microseconds.
Does anyone here know what I was doing wrong with alpine?
- Tiberium 4mo agoMusl is much less optimized than glibc, random example: https://andygrove.io/2020/05/why-musl-extremely-slow/ https://andygrove.io/2020/05/why-musl-extremely-slow/
- ashishb 4mo agoAlpine is a bad idea for a non-trivial application written in Python, Node.js, or any other interpreted language. Too many weird edge cases to deal with, especially related to Alpine using musl libc instead of glibc. At best, your builds are slower. At worst, certain code paths are broken.
- stavros 4mo agoI had this experience as well, nowadays I use Debian slim. Too much random breakage in Alpine.
- apimade 4mo agoAlpine is a great choice.. Provided you understand what’s included, and the ramifications it has on the stack you’re trying to work with. 99 times out of 100 it’s a terrible choice for an enterprise.