by sroussey · 2y ago · 0 comments
Most people aren’t doing payments. I am not sure I would use an open source db for payments, though I have not needed to do the research.
Even in eCommerce, the most contention will be for inventory.
Most SaaS businesses have low contention, for example. And errors are typically non serious. When I’ve worked in non-transaction based data stores, I’ve learned to find and fix errors in data.
That said, I HATE WHEN TOOLS LIE to developers. They should definitely do what they say. And different databases should have the same meanings for the same isolation levels.
BTW: this is how I got involved in Firebug back in the day… I noticed that it was not telling the truth when debugging my code and that upset me to no end. I sunk time and effort so others wouldn’t distrust their debugging tools.
The paper, “Your coffee shop doesn’t use two-phase commit” was making the rounds sometime around 2006-7, and it really helped crystallize things for a lot of people.
Motivational papers and speeches often find one quadrant of the “known” continuum and do well in them. They can explain a problem that nobody knows about in a way that makes them care. They can draw attention to something that you have felt but could never express. The frisson here can be palpable. Or they can explain something you’ve always known in a way that you see it again, perhaps giving you new ways to bring others deeper into the Known Knowns quadrant.
This one bridged several. It worked for people who hadn’t heard of it, and it facilitated conversations with people who were going blue in the face from discussing it and getting little traction.
Someone else has to come up with better dancers and better dances.
And having that muscle built will have the benefit that when stuff gets in a bad state from poor logic or bugs in app code anyhow, you can deal.
Certainly aim for perfect, but in most cases perfection itself is too high a cost.
This suggests a level of mistrust in postgres or a dozen other high quality, open source, production grade software. ...why?
Most applications can get away with read committed + a sprinkle of row level locks (mainly `for update`).
If not I prefer (in postgres) to use full serializable snapshot isolation with scaffolds which automatically setup/comitts/aborts and retries transactions, setting read only and deferrable as needed etc. Sadly it's often not viable.
The idea that you're using something for mission-critical things and can't even look at the source code seems terrifying and absolutely nuts to me.
Also, there is a huge difference of category here - the things you listed are interchangeable commodities. You can always use some other storage mechanism instead of a misbehaving SSD. Software like Oracle or Db2 aren't, once you're locked into them, you can't leave.
“Terrifying and absolutely nuts” may be over the top, but in my experience it can be extremely helpful to have the source code to as many components as possible when something goes wrong. Sometimes you find a bug in one of those components. Sometimes the bug turns out to be in your own code, but attaching a debugger to one of those components is still the quickest way to track it down (e.g. by letting you determine what exactly is triggering some vague error message). So all else being equal, I find it a lot easier to trust open-source code.