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!

AI School Bus Cameras Cash in on Drivers Who Fail to Stop

https://www.techspot.com/news/114489-america-school-buses-becoming-ai-powered-ticket-machines.html
1•gnabgib•1m ago•0 comments

Show HN: AI Time Estimator – how long Claude Code will take, from your own logs

https://github.com/noambrand/ai-time-estimator
2•Noambbb•2m ago•0 comments

Part Time Monkey

https://www.parttimemonkey.com/jono/
1•bookofjoe•3m ago•0 comments

AI Company Employees Should Unionize

https://www.nature.com/articles/d41586-025-00649-4
1•JimmyBuckets•3m ago•0 comments

Where We'll Live in the Future

https://www.chrbutler.com/where-we-will-live-in-the-future
2•delaugust•7m ago•0 comments

The Ontological Divergence of Artificial Intelligence

https://medium.com/@smoking2man/the-ontological-divergence-of-artificial-intelligence-from-person...
1•Aldus551•7m ago•0 comments

A 27-byte telemetry response nobody reads freezes Claude Desktop every two days

https://blog.dfb.sh/blog/claude-desktop-freeze/
2•lladnar•7m ago•0 comments

An open letter to the Nvidia Board of Directors

https://standwithjensen.com/#letter
2•matco11•8m ago•1 comments

A simple website to test if your bot is detectable

https://botstop.io/
2•incolumitas•9m ago•1 comments

Big Tech's Left Turn

https://www.status.news/p/midterm-elections-big-tech-elon-musk-mark-zuckerberg-jeff-bezos
2•ibn_khaldun•12m ago•0 comments

Lirz Ads

https://www.lirz.com
1•DevElif•14m ago•0 comments

Taboos and Self-Censorship Among U.S. Psychology Professors (2025)

https://journals.sagepub.com/doi/10.1177/17456916241252085
1•mpweiher•15m ago•0 comments

Show HN: Flipbook Foundry – animated stick figures baked into a font

https://flipbook-foundry.pages.dev/
1•arbourtrary•15m ago•1 comments

Show HN: Blaris – Windowless Random-Access LZSS for Constrained Microcontrollers

https://github.com/lis05/blaris
1•lis05•16m ago•0 comments

PinNote – Pin notes to your iPhone Lock Screen

https://apps.apple.com/us/app/pinnote-lock-screen-notes/id6809535973
1•makerjun•18m ago•0 comments

Show HN: Coppice – A local desktop app for multi-agent coding

https://github.com/fertile-org/coppice
1•bahung1221•20m ago•0 comments

Ask HN: Is there a way to use Gemini API Keys with Antigravity?

1•_voidtrace•21m ago•0 comments

Jensen's Been Moving Lately

https://www.reddit.com/r/wallstreetbets/comments/1xw2xyu/how_jensens_been_moving_lately/
3•Betelbuddy•25m ago•0 comments

Show HN: In-browser object removal, 1s on WebGPU, photo never leaves your device

https://wipe.photos/
1•g58892881•25m ago•1 comments

Show HN: Model-share – see which Claude models used your weekly limit

https://github.com/shubhamverma8991/claude-model-share
1•shubhverma8991•27m ago•0 comments

Show HN: Chopper, a tiny edge model that keeps only useful text in 50 ms

https://github.com/wiiiktor/chopper_demo
1•wiiiktor•29m ago•0 comments

Nonna's ragù: AI skill files only get you started

https://andreaazzini.com/notes/nonnas-ragu
1•azzarcher•31m ago•0 comments

Caruana Hits 2800, Within 7.2 Points of Carlsen's World No. 1 Spot

https://www.chess.com/news/view/2026-total-chess-world-championship-tour-pilot-day-4
1•haunter•33m ago•0 comments

The VHDL standard's float package gets sqrt(2) wrong

https://github.com/lmtlssss/speedrunpapi/tree/main/hardware/audit/ieee-float-pkg
7•lmtlssss•36m ago•0 comments

Christophe Pettus: Stop Using AI to Report PostgreSQL Bugs

https://thebuild.com/blog/stop-using-ai-to-report-postgresql-bugs/
4•omegaSigma95•36m ago•1 comments

LLMs as Consensus Machines

https://hollisrobbinsanecdotal.substack.com/p/thinking-inside-the-box
1•HR01•37m ago•0 comments

Polo: A Wayland Mate Compositor

https://lwn.net/Articles/1107152/
5•bashhq_r•38m ago•1 comments

Why Brains Don't Compute: Summing Up (2021)

https://link.springer.com/chapter/10.1007/978-3-030-71064-4_25
2•turtleyacht•38m ago•0 comments

Use LLM for direct robot control

https://arxiv.org/abs/2610.28259
1•kevinlu•40m ago•1 comments

Copper wire upgrade caused nationwide flight suspension

https://www.bbc.co.uk/news/articles/c6wy9lynq4qno
6•mellosouls•42m ago•0 comments