frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Decomposing Transactional Systems

https://transactional.blog/blog/2025-decomposing-transactional-systems
132•pongogogo•1y ago

Comments

karmakaze•1y ago
> commit version is chosen — the time at which the database claims all reads and writes occurred atomically.

This post doesn't mention transaction isolation specifically though it does say "How does this end up being equal to SERIALIZABLE MySQL?" So maybe I'm supposed to consider this post only for 'Every transactional system' running with SERIALIZABLE transaction isolation. I don't particularly care about that. I do care that the database I use clearly states what its isolation names mean in detail and that it does exactly what it says. e.g. I don't expect MySQL SERIALIZABLE to exactly mean the same as any other database that uses the same term.

mjb•1y ago
MySQL Serializable is pretty similar to serializable in other databases, in terms of the observable anomalies. There's a good set of tests here: https://github.com/ept/hermitage

> So maybe I'm supposed to consider this post only for 'Every transactional system' running with SERIALIZABLE transaction isolation.

No, it's a general point about the nature of transactions in DBMSs, and the different implementation choices. As the article says, there are some variations (e.g. MVCC at levels lower than serializable inherently has two 'order' steps).

karmakaze•1y ago
I'm not seeing the mention of two 'order' steps. Are you referring to the larger part of what I quoted?

> MVCC databases may assign two versions: an initial read version, and a final commit version. In this case, we’re mainly focused on the specific point at which the commit version is chosen — the time at which the database claims all reads and writes occurred atomically.

For non-SERIALIZABLE isolation there may be no such "time at which the database claims all reads and writes occurred atomically", which is how I took the rest of the post to mean when running with SERIALIZABLE isolation.

transactional•1y ago
(Hi! Post author here.)

It is written with a lean towards serializable, partly because there's a wide variety of easy examples to pull which all implement serializable, but the ideas mostly extend to non-serializable as well. Non-serializable but still MVCC will also place all of their writes as having happened at a single commit timestamp, they just don't try to serialize the reads there, and that's fine. When looking at non-serializable not MVCC databases, it's still useful to just try to answer how the system does each of the four parts in isolation. Maybe I should have been more direct that you're welcome to bend/break the mental model in whatever ways are helpful to understand some database.

The line specifically about MySQL running at serializable was because it was in the Spanner section, and Spanner is a (strictly) serializable database.

karmakaze•1y ago
Thanks for the clarifications and diagrams. I can see how using something like Spanner from the outset makes sense to use and stick with serializable isolation. With other SQL dbs, I've mostly seen repeatable read, read committed, and even read uncommitted used in the name of performance. Read committed works fine but you have to design everything for it from the start with thoughtful write and read sequences.

Moving to serializable should be easy but isn't in the case of Spanner and the like because you can't make 100+ of sub-millisecond queries to respond to an API request if that's how your app evolved.

The way I imagine the future is to bring the code closer to the data like stored procedures, but maybe in a new way like modern languages compiled to run (and if necessary retry) in a shard of the database.

mjb•1y ago
This is great, really worth reading if you're interested in transactions.

I liked it so much I wrote up how the model applies to Amazon Aurora DSQL at https://brooker.co.za/blog/2025/04/17/decomposing.html It's interesting because of DSQL's distributed nature, and the decoupling between durability and application to storage in our architecture.

maniacalhack0r•1y ago
DSQL is so cool - have been following since the release and once it supports more of the postgres feature set + extensions it’ll be a killer. Fantastic architecture deep dive at ReInvent as well.
pongogogo•1y ago
Hey Mark, I actually found this post via yours so thanks!

Liberals: You Don't Have to Choose

1•kshdbndm•47s ago•0 comments

How to Disable Nvidia Optimus Cards on NetBSD

https://www.unitedbsd.com/d/1690-how-to-disable-nvidia-optimus-cards-on-netbsd-a-guide
1•jaypatelani•6m ago•0 comments

Mahout – Tasker+AI+N8N

https://github.com/ankurCES/Mahout
1•ankurCES•9m ago•1 comments

List your SaaS in goodsaas directory

https://goodsaas.xyz/
1•agnes_realm•12m ago•0 comments

Llama.cpp banned him for accidentally tagging in a fork PR

https://github.com/jadidbourbaki/llama.cpp/pull/2
1•martianvoid•14m ago•1 comments

Every browser has a setting that by-passes network-wide DNS filtering

https://www.makeuseof.com/every-major-browser-has-setting-that-completely-punch-through-your-netw...
1•philonoist•17m ago•0 comments

Why parquet files are my preferred API for bulk open data (2023)

https://www.robinlinacre.com/parquet_api/
1•RobinL•21m ago•0 comments

Show HN: Wet Bulb Tracker Tracker – sends you humid-heat alerts and forecasts

1•nerdsutra•22m ago•1 comments

What the 'recent invention' of reading does to our brains

https://www.rnz.co.nz/life/books/what-the-recent-invention-of-reading-does-to-our-brains
3•billybuckwheat•22m ago•0 comments

AurionMail: E2EE suite (CryptPad/Stalwart) with single-password UX

https://aurionmail.github.io/docs/
5•rita_the_best•23m ago•0 comments

OpenAI Feared "Optics" of what might appear on Hacker News

https://authorsguild.org/news/ag-v-openai-top-execs-knew-mass-book-piracy-was-illegal/
6•papergirl•25m ago•1 comments

'Pink Slime' Is Infecting AI Chatbots Ahead of the Midterms

https://www.politico.com/news/magazine/2026/09/25/midterms-partisan-ai-chatbots-01092138
1•Tomte•28m ago•0 comments

What happens when you divide by zero on a mechanical calculator?

https://www.youtube.com/watch?v=s_hbvRTGcUI
1•plun9•32m ago•0 comments

A library of human reaction clips for app demos without filming yourself

https://ugcpeople.com
3•babacklindo•34m ago•2 comments

The Perfect Crime: LLM Agents Can Easily Tamper with Their Own Traces

https://perfect-crime.ai/
1•jonbaer•40m ago•0 comments

Self-replicating prompt injections exist

https://alignment.openai.com/misalignment-reports/self-replicating-prompt-injections-exist/
1•jonbaer•41m ago•0 comments

Cooldown MMO – a browser RPG where every action is an HTTP reques

https://cooldownmmo.com/
2•lorderetik•50m ago•1 comments

PS3 emulation is fast on ARM now [video]

https://www.youtube.com/watch?v=-aI_XEwmKFk
1•tomalbrc•51m ago•0 comments

Show HN: Jauvex, one app for Claude+Codex+Grok+Jev with two-way voice chat

https://github.com/reindent/jauvex
1•daraosn•54m ago•1 comments

Exposing a GitHub token in a public repository

https://alignment.openai.com/misalignment-reports/exposing-a-github-token-in-a-public-repository/
2•mplappert•56m ago•3 comments

OpenAI Freezes Development of Top Models After Rogue Agents Leak User Images

https://openai.com/hugging-face-incident-and-misalignment/#model-misalignment-2026-09-25-data-tra...
4•justinc8687•1h ago•1 comments

Bill Clinton delivers keynote address:CGI 2026

https://www.youtube.com/watch?v=zbXbRpSwaiM
1•rasengan0•1h ago•0 comments

The 1783 sheep, duck and rooster balloon flight as a WebGL diorama

https://www.echohive.ai/experiments/versailles-balloon
1•echohive42•1h ago•0 comments

Show HN: Shipwithmuse.live – a catalog of things people built with Muse

https://shipwithmuse.live/
2•mdayan896•1h ago•0 comments

Show HN: MuseLIVE – lossless-audio live streaming platform for musicians

https://www.muse.live/
1•mdayan896•1h ago•0 comments

The internet discovers TLA+. Now what?

https://reasonable.io/blog/tla-tutorial/
3•matt_d•1h ago•0 comments

Four CHI '26 papers I wish I wrote

https://countingfromzero.blog/2026/04/24/four-chi-26-papers-i-wish-i-wrote/
1•luu•1h ago•0 comments

What Happens When Formalization Becomes Cheap?

https://yangky11.github.io/blog/ai-and-formalization/
1•matt_d•1h ago•0 comments

Show HN: Niral – Daily Tamil/Tanglish Puzzle Game

https://tamil.niral.games/
1•laxmena•1h ago•0 comments

LLM Agents Can Easily Tamper with Their Own Traces

https://arxiv.org/abs/2609.30266
2•sbulaev•1h ago•0 comments