frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Decomposing Transactional Systems

https://transactional.blog/blog/2025-decomposing-transactional-systems
132•pongogogo•11mo ago

Comments

karmakaze•11mo 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•11mo 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•11mo 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•11mo 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•11mo 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•11mo 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•11mo 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•11mo ago
Hey Mark, I actually found this post via yours so thanks!

MADL Encyclopedia

https://madl.si5.pl/#dashboard
1•lemursage•37s ago•1 comments

The Old Internet Is Still Here

https://tylergaw.com/blog/the-old-internet-is-still-here/
1•cyanbane•1m ago•0 comments

Lethal conflict after group fission in wild chimpanzees

https://www.science.org/doi/10.1126/science.adz4944
2•impish9208•3m ago•0 comments

Rustls Performance Update

https://www.memorysafety.org/blog/26q1-rustls-performance/
1•SGran•4m ago•0 comments

Facepunch signed a license with Valve to allow standalone releases from s&box

https://www.gamingonlinux.com/2026/03/facepunch-signed-a-license-with-valve-to-allow-standalone-r...
1•SockThief•5m ago•0 comments

Old habits die hard: Microsoft tries to limit our options, this time with AI

https://blog.mozilla.org/en/mozilla/ai/microsoft-copilot-ai-user-choice/
1•speckx•5m ago•0 comments

Submitted fix to Hugging Face and was mocked, but my responses need more insight

https://github.com/huggingface/transformers/issues/45246
1•promptfluid•6m ago•1 comments

The Patterns That Agents Miss

https://www.leap-labs.com/blog/the-patterns-that-agents-miss
2•jamierumbelow•6m ago•0 comments

Every new Gemma 4 model in 1 chat. Use it in 60 seconds and see how we built it

https://seqpu.com/blog/gemma4
2•fredmendoza•7m ago•0 comments

Offline and security-first tool for syncing and managing agent skills

https://github.com/asteroid-belt/skulto
2•a-b•8m ago•0 comments

Duff's Device

https://en.wikipedia.org/wiki/Duff%27s_device
2•TheBitBanger•9m ago•1 comments

The grey market of podcast appearances

https://pierce.dev/notes/the-grey-market-of-podcast-appearances
3•speckx•9m ago•0 comments

Reasons to think that the Claude Mythos announcement was overblown

https://garymarcus.substack.com/p/three-reasons-to-think-that-the-claude
1•guilamu•9m ago•0 comments

Show HN: chop.ax – strip sites down to just their content

https://chop.ax/
2•foax•10m ago•0 comments

Passwords acceptability needs a universal standard

https://zencapital.substack.com/p/passwords-acceptability-needs-a-universal
2•zenincognito•11m ago•0 comments

Ask HN: What Is a Hacker?

1•blahaj•11m ago•1 comments

EqSh: Hyprland Shell Inspired by Apple

https://github.com/eq-desktop/eqsh
1•LorenDB•11m ago•0 comments

CDC study shows Covid shot benefits; Trump official blocks release

https://arstechnica.com/health/2026/04/cdc-study-shows-covid-shot-benefits-trump-official-blocks-...
6•ColinWright•12m ago•1 comments

Show HN: Monetary policy tracker – AI sentiment analysis of 26 central bank

https://monetary.live/
1•ipotapov•14m ago•0 comments

YC: Adding Canada Back to Our List of Accepted Countries of Incorporation

https://www.ycombinator.com/blog/adding-canada-back
2•sarimkx•15m ago•0 comments

Stop using all USB peripherals and cables, says pundit Brian Livingston

https://www.askwoody.com/newsletter/free-edition-any-usb-drive-or-cable-you-plug-in-might-be-a-si...
1•larrybud•15m ago•0 comments

The FBI's router takedown that cut off APT28's 'tremendous access'

https://cyberscoop.com/fbi-operation-masquerade-russian-gru-router-takedown-brett-leatherman/
2•lschueller•16m ago•1 comments

Wild chimpanzees recorded waging 'civil war' with coordinated attacks

https://www.theguardian.com/environment/2026/apr/09/civil-war-chimpanzee-group-closer-to-human-co...
2•geox•17m ago•0 comments

We Uncovered the Illegal Scam Happening at Every Stadium [video]

https://www.youtube.com/watch?v=w7LPPTLDXu4
1•meandave•17m ago•1 comments

Inferring user actions from screen recordings to recommend better workflows [pdf]

https://yanlitao.github.io/papers/invisibleMentor.pdf
2•azhenley•18m ago•0 comments

Netflix Prices Went Up Again – I Bought a DVD Player Instead

https://aywren.com/2026/04/09/netflix-prices-went-up-again-i-bought-a-dvd-player-instead/
41•speckx•18m ago•23 comments

What products are generating actual value?

1•ippohadgrit•19m ago•0 comments

Code is not abstracted away

https://ahmethuseyindok.com/blog/code-is-not-abstracted-away
2•dokdev•21m ago•0 comments

Seed: Adding `vau` with an immutable dynamic environment to Chez Scheme

https://github.com/amirouche/seed
2•PaulHoule•21m ago•0 comments

US defense official overseeing AI reaped millions selling xAI stock

https://www.theguardian.com/us-news/2026/apr/09/pentagon-ai-xai-emil-michael
4•malshe•22m ago•1 comments