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!

European Commission Chooses to Keep EU Users Locked Up Behind Big Tech's Gates

https://www.eff.org/deeplinks/2026/07/european-commission-chooses-keep-eu-users-locked-behind-big...
1•rapnie•1m ago•0 comments

LL Handles Direct Left Recursion

https://btmc.substack.com/p/ll-handles-direct-left-recursion
1•sirwhinesalot•2m ago•0 comments

Strong El Nino could make 2027 the hottest year on record

https://www.theguardian.com/environment/2026/jul/17/record-el-nino-forecast-2027-hottest-year-on-...
1•nreece•5m ago•0 comments

SynthExplorer – Compiler Explorer for RTL

https://synthexplorer.dev/
2•cachanova•8m ago•0 comments

NTP server that traveled back in time caused Aussie mobile outage

https://www.theregister.com/networks/2026/07/17/ntp-server-that-traveled-back-in-time-caused-mass...
1•defrost•8m ago•0 comments

macOS 27 web app made by Kimi K3

https://twitter.com/mweinbach/status/2077878247920951400
1•vitorgrs•11m ago•1 comments

Back End Engineer – Python (Remote – India)

https://www.axelerant.com/careers
1•adrijadas•12m ago•0 comments

I wrote code today and felt incredible

https://biraj21.github.io/blogs/wrote-code-today/
1•sherlock-holmes•12m ago•0 comments

The Internet, Reinvented [video]

https://www.youtube.com/watch?v=XTnYVh7K6xQ
2•iamA_Austin•18m ago•2 comments

Astronomers spot first atmosphere around a potentially habitable alien world

https://www.science.org/content/article/astronomers-spot-first-atmosphere-around-potentially-habi...
2•nobody9999•20m ago•0 comments

Thermodynamic Computers Go with the (Energy) Flow

https://www.quantamagazine.org/thermodynamic-computers-go-with-the-energy-flow-20260715/
1•anujbans•22m ago•0 comments

mcp-windbg reaches 1.0.0 now with kernel debugging

https://github.com/svnscha/mcp-windbg/releases/tag/v1.0.0
2•superreeen•25m ago•0 comments

Show HN: Xkcd Search

https://xkcd.stupidlabs.lol
1•freakynit•31m ago•0 comments

Show HN: LHIC-The execution layer that gets safer and smarter with every run

https://lhic-docs.pages.dev/
2•pinyencheng•32m ago•0 comments

Z.ai Set to Be First China AI Firm with $1B Annual Sales

https://www.bloomberg.com/news/articles/2026-07-17/z-ai-set-to-be-first-china-ai-firm-with-1-bill...
3•mfiguiere•33m ago•0 comments

AI helped me write every game I ever wanted to make

https://boompop.games/
3•jquave•35m ago•1 comments

A Silly Adaptation of "The Odyssey"

https://economist.com/culture/2026/07/15/a-very-silly-adaptation-of-the-odyssey
3•andsoitis•36m ago•0 comments

Buffett reveals he was behind Berkshire's $31B bet on Google

https://fortune.com/2026/07/16/warren-buffett-google-berkshire-ai-race/
2•teleforce•38m ago•0 comments

Show HN: OSS Pi Agent for Slack and Linear

https://github.com/brainwavesio/pi-digby
2•grrowl•40m ago•0 comments

Firefox Profile Decryption Explained

https://github.com/asaix/mozdmp
3•asaix•40m ago•1 comments

White House Teleprompter Operator Bet on Trump Speeches, Kalshi Says

https://www.nytimes.com/2026/07/16/technology/teleprompter-operator-kalshi-trump-speeches.html
2•thm•47m ago•0 comments

Looking for Curious

https://github.com/dada2112311231323123/ScannerSteamParser3D/blame/main/scanner.rar
1•pylyi•52m ago•0 comments

My justfile to quick bootstrap and start journey with Odin

https://gist.github.com/skorotkiewicz/33e92829cecc98381760faec49b54851
1•modinfo•53m ago•0 comments

The Wall of LLMs

https://carrotandstick.games/blog/carrot-mcp-server
1•tibastral2•53m ago•1 comments

Nvidia has a new AI-RAN plan – a 6G radio unit chip

https://www.lightreading.com/6g/nvidia-has-a-radical-new-ai-ran-plan-a-6g-radio-unit-chip
2•porridgeraisin•55m ago•1 comments

Old CSS, new CSS (2020)

https://eev.ee/blog/2020/02/01/old-css-new-css/
1•downbad_•56m ago•0 comments

Nokia says long-term 6G is not doable without Nvidia

https://www.lightreading.com/6g/nokia-says-long-term-6g-is-not-doable-without-nvidia
1•porridgeraisin•56m ago•0 comments

Owner of 33rd ever Apple-1, demos working version [video]

https://www.youtube.com/shorts/K2gFNfNejVU
1•lifeisstillgood•1h ago•0 comments

Taco Bell lettuce at centre of growing US diarrhoea outbreak

https://news.sky.com/story/taco-bell-lettuce-at-centre-of-growing-us-diarrhoea-outbreak-13564220
1•austinallegro•1h ago•0 comments

EEG shows brain can simultaneous encode two speech streams

https://journals.plos.org/plosbiology/article?id=10.1371/journal.pbio.3003876
19•giuliomagnifico•1h ago•0 comments