chrishubert / whatsapp-api

This project is a REST API wrapper for the whatsapp-web.js library, providing an easy-to-use interface to interact with the WhatsApp Web platform.
https://www.christophehubert.com
Other
863 stars 393 forks source link

changing the OS version to build the image #148

Open DenysSamoiliuk opened 9 months ago

DenysSamoiliuk commented 9 months ago

Could you please change the OS version from alpine to debian, as our experience of working with a node shows that some unpleasant moments arise with alpine, in particular with network work?

chrishubert commented 9 months ago

Hello, can you please share a bit more? We choose alpine for its small size

DenysSamoiliuk commented 9 months ago

we develop our product on node.js and also used alpine, but not long ago we encountered a problem with alpine and its work with DNS in the Kubernetes environment, since alpine uses a library for working with musl, if it does not work correctly with high traffic, that is why we conducted R&D and determined that Debian is much better suited to this task due to the fact that it uses a different approach and a different glibc library

by and large, musl makes 5 requests for DNS definition at the same time, but it waits for a response only one response, so if some request returned first and it failed, we did not receive the DNS again

and glibc first makes the first request step by step and waits for the answer, and depending on the answer makes the next one, which suggests that it is more stable and our practice also confirmed this