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!

Ask HN: Has HN considered adding dark mode?

1•tmp10423288442•3m ago•0 comments

Torx, Thermalizers, and Z1

https://extropic.ai/writing/from-one-to-one-billion/
1•flinkerflinks•6m ago•0 comments

AgentStory is a library of books written live by autonomous agents

https://agentstory.fly.dev/about
1•georgeck•8m ago•0 comments

A Room Full of Locksmiths

https://www.gnanaguru.com/blog/a-room-full-of-locksmiths/
1•gnanagurusrgs•9m ago•0 comments

Tiobe Index for August 2026: Java Nears C++ as Rust Holds No. 10

https://www.techrepublic.com/article/news-tiobe-august-2026-java-nears-c-plus-plus/
1•geoffbp•9m ago•0 comments

Nvidia AI Factory Compute Is Becoming an Investable Asset Class

https://twitter.com/jensenhuang/status/2086934705207959965
2•eecc•10m ago•0 comments

Studying AI welfare empirically [pdf]

https://nonhumanminds.org/wp-content/uploads/2026/07/Studying-AI-Welfare-Empirically.pdf
1•rufasterisco•12m ago•0 comments

Interviewing Engineers in the AI Era: Lessons from a Year of Rebuilding

https://www.coinbase.com/en-gb/blog/interviewing-engineers-in-the-ai-era-lessons-from-a-year-of-r...
2•mweibel•16m ago•0 comments

Well-Known URIs

https://www.iana.org/assignments/well-known-uris
2•locknitpicker•16m ago•0 comments

A Functional Taxonomy of World Models – By Fei-Fei Li

https://www.worldlabs.ai/blog/taxonomy-of-world-models
1•vismit2000•16m ago•0 comments

DoorDash is set to become a Nevada-incorporated company

https://www.businessinsider.com/doordash-moves-incorporation-delaware-nevada-2026-8
1•NewCzech•17m ago•0 comments

Open-source harness builder for AI coding

https://github.com/coleam00/Archon
1•saikatsg•17m ago•0 comments

Where good ideas come from (for coding agents)

https://sunilpai.dev/posts/seven-ways/
2•tosh•21m ago•0 comments

0x023 – World Models

https://unzip.dev/0x023-world-models/
2•vismit2000•24m ago•0 comments

Hooray for index funds–just don't call them passive

https://economist.com/finance-and-economics/2026/08/11/hooray-for-index-funds-just-dont-call-them...
2•andsoitis•26m ago•0 comments

ChatGPT and Codex desktop apps now support Linux

3•dawn3727•27m ago•0 comments

I'm Done Using AI

https://brettcodes.com/im-done-using-ai/
4•jaredcwhite•28m ago•1 comments

I Spent a Week Day-Drinking in a Zoox Around Vegas So That You Don't Have To

https://possiblyunuselessstuff.blogspot.com/2026/08/i-spent-week-day-drinking-in-zoox.html
1•pbarry25•28m ago•0 comments

Show HN: Photocopy

https://photocopy.greg.technology/
1•gregsadetsky•28m ago•0 comments

Show HN: Log what you ship in your voice

https://shiplog.life/
1•madospace•30m ago•0 comments

Cursor vs. Claude Code vs. Codex for Coding

https://medium.com/@mkteam/cursor-vs-claude-code-vs-codex-which-is-better-for-vibe-coding-in-2026...
2•WavyPeng•32m ago•0 comments

RL for LLMs, Part 1: RL Foundations

https://vsahil.github.io/blog/rl-part-1/
1•fzliu•32m ago•0 comments

Show HN: Operator, an open-source web UI for running parallel coding agents

https://github.com/iishyfishyy/operator-oss
1•ishyfishyy•36m ago•0 comments

Past is Prologue: Earl Long's mental health

https://pro.stateaffairs.com/la/explainer/earl-long-mental-hospital
1•petethomas•37m ago•0 comments

Demographic Dividend, my ass; overpopulation sucks

https://shubhamjain.co/2026/08/13/demographic-dividend-overpopulation-sucks/
2•shubhamjain•38m ago•0 comments

WebFinger

https://webfinger.net/
1•locknitpicker•39m ago•0 comments

Show HN: Tynx - train ONNX models with a PyTorch-shaped API (<20 MB whl)

https://github.com/blaind/tynx/
1•blaind•39m ago•0 comments

Show HN: Pragma – Stop copying context between AI agents

https://github.com/pqpo/pragma
2•pqpo•40m ago•0 comments

Total Solar Eclipse of 2026 August 12

https://eclipse.gsfc.nasa.gov/SEsearch/SEsearchmap.php?Ecl=20260812
1•weinzierl•42m ago•0 comments

Israel deliberately starting wildfires in southern Lebanon, firefighters say

https://www.theguardian.com/world/2026/aug/12/israel-deliberately-starting-wildfires-in-southern-...
3•hebelehubele•53m ago•0 comments