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•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!

KDE's 30th Anniversary

https://kde.org/anniversaries/30/
2•birdculture•3m ago•0 comments

Ask HN: Anyone feel like they're just opting out of tech these days?

2•moomoo11•3m ago•0 comments

Show HN: MAItion – Open-source RAG with pluggable connectors and chat UI

https://github.com/WikiTeq/mAItion
1•vedmaka•4m ago•0 comments

The Most Important Charts in the World

https://thezvi.substack.com/p/the-most-important-charts-in-the
1•paulpauper•5m ago•0 comments

What Anemoia Tells Us About Human Psychology and Culture

https://www.samwoolfe.com/2026/04/nostalgia-for-past-unlived-anemoia-human-psychology-culture.html
1•paulpauper•6m ago•0 comments

Capitalism and Modernity

https://marginalrevolution.com/marginalrevolution/2026/04/capitalism-and-modernity.html
2•paulpauper•7m ago•0 comments

Jet Beetle

https://www.ronpatrickstuff.com/
2•brk•8m ago•0 comments

The People and the Machine

https://www.therage.co/the-people-and-the-machine/
2•Cider9986•8m ago•0 comments

Vegas 2026: The DOJ's Developer Exemptions

https://www.therage.co/blanche-vegas/
2•Cider9986•9m ago•0 comments

Charging for APIs by blocking execution instead of usage tracking

https://buy.stripe.com/eVq7sK6Qd1SCgwp0RgcMM00
2•inri•9m ago•0 comments

Python Packaging Council Approved

https://lwn.net/SubscriberLink/1068704/8130b6ceb2531354/
2•chmaynard•10m ago•0 comments

Zwift Acquires Rouvy

https://rouvy.com/press/zwift-has-completed-the-acquisition-of-ROUVY
1•cabanis•11m ago•0 comments

Wing's homecoming: Bringing drone delivery to the Bay Area

https://wing.com/news/wing-drone-delivery-bay-area
2•xnx•12m ago•0 comments

Photoshop's challenges with focus, pt. 2

https://unsung.aresluna.org/photoshops-challenges-with-focus-pt-2/
1•robenkleene•12m ago•0 comments

Show HN: Agent that mines academic research for novel time series discoveries

https://github.com/adam-s/alphadidactic
2•dataviz1000•14m ago•0 comments

German Bundeswehr does not intend to use Palantir software

https://www.zeit.de/politik/deutschland/2026-04/palantir-bundeswehr-nato-software-gxe
2•doener•18m ago•0 comments

The Luddites would have loved AI

https://www.disruptingjapan.com/the-real-luddites-would-have-loved-ai/
1•timoth3y•19m ago•1 comments

OrcaSlicer project shuttered after Bambu Lab threatens legal action

https://www.tomshardware.com/3d-printing/developer-re-enables-3d-printer-features-that-bambu-lab-...
2•josephcsible•26m ago•0 comments

I built an AI job search agent on Claude Code to run my own PM job search

https://github.com/ymuromcev/ai-job-searcher
1•ymuromcev•26m ago•0 comments

The $1 Visionary – transforming lives with affordable eye glasses

https://reasonstobecheerful.world/the-one-dollar-visionary/
2•susiecambria•26m ago•0 comments

Amanay – a terminal focused on predictable behavior (C, GTK4)

https://github.com/isuzano/amanay
1•isuzano•28m ago•0 comments

Germany has become the largest ammunition producer in the world

https://prm.ua/en/the-us-is-no-longer-the-leader-germany-has-become-the-largest-ammunition-produc...
6•doener•32m ago•1 comments

Shopify's AI-first engineering playbook

https://www.bvp.com/atlas/inside-shopifys-ai-first-engineering-playbook
1•deakhaus•33m ago•0 comments

Protecting Cookies with Device Bound Session Credentials

https://security.googleblog.com/2026/04/protecting-cookies-with-device-bound.html
1•Techbrunch•38m ago•0 comments

The Man Behind AlphaGo Thinks AI Is Taking the Wrong Path

https://www.wired.com/story/david-silver-ai-ineffable-intelligence-reinforcement-learning/
3•mikhael•40m ago•0 comments

Sony rolls out 30-day DRM check-in for PlayStation – stay online or lose access

https://www.tomshardware.com/video-games/playstation/sony-rolls-out-30-day-online-drm-check-in-fo...
9•josephcsible•43m ago•1 comments

Show HN: Nv – workspace orchestrator for jj built for parallel agent workflows

https://github.com/eersnington/jj-navi
2•Sreenington•43m ago•0 comments

Drones and AI will fragment the international order

https://www.thenewatlantis.com/publications/a-shakeup-is-coming-for-the-nation-state
2•SCEtoAux•44m ago•0 comments

Google told staff it is 'proud' of Pentagon AI contract after internal backlash

https://www.ft.com/content/e2f5f0a7-fa24-430f-b7f8-27b78041ea8a
7•merksittich•48m ago•2 comments

Vera: a programming language designed for machines to write

https://github.com/aallan/vera
2•unignorant•49m ago•0 comments