Re:The Simplicity of Single-File Golang Deployments
by ed25519FUUU on Wednesday March 22, 2023 @11:35PM
(#35270238)
Clever solution! Why not make it part of the startup of your binary?
[ Parent
| on HN ]
Re:The Simplicity of Single-File Golang Deployments
by acatton on Thursday March 23, 2023 @03:44PM
(#35280278)
Sorry to reply a day later. GP here, it's a simple separation of concern. IMHO the binary should not be aware that it is cached and/or how it's deployed. I separate "business logic" from "devops", and I consider purging the cache to be "devops". This is why I let systemd do it.
Of course, at the end it's a question of preference. People might disagree.