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!

PixelSat I Software Part 2: Attitude Determination and Control System

https://www.projectpixelorbital.com/software-2/
1•aadishv•1m ago•0 comments

US Congress takes next step to make daylight saving time permanent

https://www.bbc.com/news/articles/cz9l9venjd8o
1•xoxxala•7m ago•1 comments

Lawsuit claims Meta's layoff decisions were made by AI, not humans

https://arstechnica.com/tech-policy/2026/07/lawsuit-claims-metas-layoff-decisions-were-made-by-ai...
2•BeetleB•8m ago•2 comments

NeuralPGN – local-first chess repertoire trainer with FSRS (Tauri)

https://github.com/kfunezc204/neuralpgn
1•kfunezc204•9m ago•0 comments

FreeBSD 16 Retires the Last of Its GPL Code from Its Base System

https://www.phoronix.com/news/FreeBSD-16-Goes-GPL-Free
1•terminalbraid•10m ago•0 comments

What Is "Loop Engineering?"

https://newsletter.pragmaticengineer.com/p/what-is-loop-engineering
1•Khaine•13m ago•0 comments

The website Fable 5 built for my iOS App

https://www.xtraktr.com/
1•kiloloco•13m ago•0 comments

Git-absorb: Git commit –fixup, but automatic

https://github.com/tummychow/git-absorb
1•birdculture•13m ago•0 comments

The Center of Our Galaxy Is More Like a Raspberry Donut Than We Realized

https://www.sciencealert.com/scientists-find-the-first-true-sugar-ever-detected-in-interstellar-s...
1•gmays•13m ago•0 comments

The Future of American Power

https://carnegieendowment.org/projects/beyond-disruption/collections/the-future-of-american-power
1•luu•15m ago•0 comments

Building a Static Site with Pandoc

https://joeldare.com/building-a-static-site-with-pandoc
1•codazoda•18m ago•0 comments

ARDY: Autoregressive Diffusion for Human Motion Generation

https://research.nvidia.com/labs/sil/projects/ardy/
1•klaussilveira•21m ago•0 comments

LLM-as-a-Verifier: A General-Purpose Verification Framework

https://arxiv.org/abs/2607.05391
1•gmays•25m ago•0 comments

Plans for New Zealand's first AI datacentre spark concerns

https://www.theguardian.com/world/2026/jul/10/new-zealand-first-datacentre-concern-locals-makarew...
4•billybuckwheat•26m ago•0 comments

Japan begins standing up new Intel agency with input from allies

https://www.japantimes.co.jp/news/2026/07/13/japan/politics/japan-intelligence-agency/
3•keepamovin•31m ago•0 comments

The Luna-cy of getting Lock The Clock done

https://locktheclock.net/time/2026/07/the-luna-cy-of-getting-lock-the-clock-done/
2•toomuchtodo•34m ago•1 comments

New flapping robot swims and flies like a diving bird

https://news.mit.edu/2026/new-flapping-robot-swims-and-flies-like-diving-bird-0709
5•gmays•38m ago•1 comments

Only 90s Web Developers Remember This (2014

https://zachholman.com/posts/only-90s-developers/
7•downbad_•39m ago•1 comments

Ask HN: How useful is Gemini for Google Apps?

3•cobbzilla•39m ago•1 comments

Show HN: Tilion – Stealth Browser Infrastructure for Agents

https://twitter.com/tiliondev/status/2077162199739752933
8•arhamshahrier•42m ago•4 comments

Linear is always a lagging indicator

https://remark.ing/rob/rob.mw/-/Linear-is-always-a
4•koch•42m ago•0 comments

Why devs turn to Buildkite in the AI era

https://www.thestack.technology/buildkite-ai-developer-cicd/
4•juanfatas•44m ago•0 comments

The politics of air conditioning in Switzerland

https://lenews.ch/2026/05/29/the-politics-of-air-conditioning-in-switzerland/
2•bookofjoe•44m ago•0 comments

Ask HN: How's the idea of creating LinkedIn styled character profiles

3•anitroves•45m ago•3 comments

Sets of Overlapping Circles

https://unsung.aresluna.org/sets-of-overlapping-circles/
2•frizlab•45m ago•0 comments

Batteries 'cheaper' than gas plants as data centres fuel turbine costs

https://www.abc.net.au/news/2026-07-15/csiro-says-batteries-cheaper-than-gas-as-ai-drives-turbine...
4•femto•45m ago•0 comments

Pioneers of Computer Graphics [video]

https://www.youtube.com/watch?v=WeJX1DV0hq0
2•gabrielsroka•46m ago•0 comments

Casio FX870P Emulator

https://github.com/urbancamo/fx870p-emulator
3•austinallegro•46m ago•0 comments

OpenAI's first hardware device will be a HomePod, but don't tell them that

https://appleinsider.com/articles/26/07/14/openais-first-hardware-device-will-be-a-homepod-but-do...
4•frizlab•47m ago•1 comments

QR-Swastika-Avoider

https://crates.io/crates/qr-swastika-avoider
29•gregsadetsky•48m ago•11 comments