Re:Kafka Removing Zookeeper Dependency
by bsaul on Sunday May 17, 2020 @07:22AM
(#23211223)
I'm not sure what you mean. Deploying static binaries was the main way to go before, and is now the standard approach with go. Pretty much every service developed in go is deployed as a standalone statically compiled binary, and i would assume it's the same for code developped in Rust.
[ Parent
| on HN ]
Except you need to make sure you built against the correct version of libc because you cannot statically link that.
I remember when docker first came out and people were losing their minds about how they will be able to deploy their applications with all their dependencies in a single shippable bundle, kind of like an uber jar.
Rust programs can be statically linked to musl libc, producing binaries that will run on any linux distribution. You can run ldd on the binaries and confirm they have zero dependencies on shared libraries.
Isn't that what go is trying to alleviate, with their use of direct syscalls and no use of libc?