by latchkey · 2y ago · 0 comments
This is a neat proof of concept and I encourage experimentation. But, if you're developing something, please just use postgres, and don't try to cobble things together with something like this.
Edit: already seeing the downvotes. Yes... classic HN... anything that goes against plain old sanity is punished.
Won’t downvote you for giving pragmatic advice, but I appreciate projects like this that slap together disparate technologies for an interesting goal, even if it isn’t the best choice for your usual Fortune 500 company.
That's exactly why I said: "This is a neat proof of concept and I encourage experimentation."
I think the important thing is to encourage devs to understand transactions in the first place.
Some companies only have juniors. 28 years ago, I was the junior at my company, and the first/only engineer.
Let's also be real here, most applications don't need distributed Postgres either and those that do, will have senior engineers on staff.
I posit that if you're at that scale, you're figuring out how to get distributed postgres to work and not messing with things like Marmot.
If you absolutely need to distribute data, it means you're working at a scale where things are already complex.
Using SQLite for that will not simplify your life, it will just make it harder to tackle the complexity.
Unless you are extremely careful, eventually consistent writes are almost guaranteed to produce behaviors that are hard / impossible to anticipate during development. And a PITA to debug.