Re:Ask HN: Why do message queue-based architectures seem les...
by fredrb on Wednesday June 19, 2024 @03:07AM
(#40725642)
It’s not that bad if you need to deploy at least 3 things and for most cases it beats the alternatives. You can get away with a bootstrapped deployment yaml and a couple of services for most scenarios. What should you use instead? Vendor locked app platforms? Roll out your own deploy bash scripts?
Sure the full extend of Kubernetes is complicated and managing it might be a pain, but if you don’t go bonkers is not that hard to use it as a developer.
Re:Ask HN: Why do message queue-based architectures seem les...
by ithkuil on Wednesday June 19, 2024 @03:13AM
(#40725684)
I wonder why people don't use fromYaml + toJson to avoid stupid errors with indent.
Yaml is for all intents and purposes a superset of JSON so if you render your subtree as JSON you can stick it in a Yaml file and you don't need to care with indentation.
Re:Ask HN: Why do message queue-based architectures seem les...
by spoiler on Wednesday June 19, 2024 @03:06AM
(#40725636)
Honestly, Helm kinda sucks (for all the reasons you mentioned).
But Kustomize is very nice. Although, their docs could be a bit better.
Re:Ask HN: Why do message queue-based architectures seem les...
by xnickb on Wednesday June 19, 2024 @02:50AM
(#40725549)
But my infrastructure is code! Can't you see how it's all in git?
Re:Ask HN: Why do message queue-based architectures seem les...
by benterix on Wednesday June 19, 2024 @03:52AM
(#40725916)
What's wrong with having your infrastructure as code and storing it in Git?
Re:Ask HN: Why do message queue-based architectures seem les...
by xnickb on Wednesday June 19, 2024 @04:57AM
(#40726301)
YAML isn't code. Same as your reply, YAML has very little awareness of context.
Re:Ask HN: Why do message queue-based architectures seem les...
by benterix on Wednesday June 19, 2024 @06:41AM
(#40726926)
In computer science, the word "code" has a very specific meaning, and markup languages definitely fit this definition.
Re:Ask HN: Why do message queue-based architectures seem les...
by sofixa on Wednesday June 19, 2024 @04:58AM
(#40726308)
Nothing. Even if it's objectively terrible (thousands of lines of templated YAML, or thousands of lines of spaghetti bash), being in Git as code is still better. At least you know what it is, how it evolved, and can start adding linting/tests.
Re:Ask HN: Why do message queue-based architectures seem les...
by benterix on Wednesday June 19, 2024 @06:43AM
(#40726934)
I manage large IaC repos and it's mostly HCL, well-structured and easy to work with. Where we have Kubernetes manifests, they're usually split into smaller files and don't cause any trouble as normally we usually don't deploy manifests directly.
Re:Ask HN: Why do message queue-based architectures seem les...
by ndthrowaway on Wednesday June 19, 2024 @04:59AM
(#40726314)
"in a language that uses whitespace for logic"
This argument kind of died when python became one of the most popular programming languages used.
Re:Ask HN: Why do message queue-based architectures seem les...
by cassianoleal on Wednesday June 19, 2024 @06:16AM
(#40726795)
Python uses whitespace for scoping - not for logic. That said, the same is true for YAML.
Re:Ask HN: Why do message queue-based architectures seem les...
by oblio on Wednesday June 19, 2024 @05:31AM
(#40726523)
Yeah, but Python has actual for loops.
Re:Ask HN: Why do message queue-based architectures seem les...
by everforward on Thursday June 20, 2024 @12:06PM
(#40740276)
It’s not completely that white space is bad, but in particular that white space is very difficult to template relative to something character-delimited like JSON or s expressions.
In JSON or s expressions, the various levels of objects can be built independently because they don’t rely on each other. In YAML, each block depends on its parent to know how far it should be indented, which is a huge pain in the ass when templating.
Right, who doesn't want to template hundreds of lines of code in a language that uses whitespace for logic and was never made neither for templating nor complex long documents(YAML)? What could possibly go wrong ("error missing xxx at line 728, but it might be a problem elsewhere").