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!

I Did This Without Your Knowledge

https://www.lesswrong.com/posts/3375SZNGA5dKHQMie/i-did-this-without-your-knowledge
1•jmugan•2m ago•0 comments

Say goodbye to manually typing replies on x

https://chromewebstore.google.com/detail/yapmaxxer-—-ai-replies-in/mliokepdopdfkhfdiepjcbcfkamj...
1•Quise2003•5m ago•0 comments

PHP2Shell (CVE-2026-109618) Exploit

https://www.exploit-db.com/exploits/52704
1•sysoleg•5m ago•0 comments

Happiness from Treating the Weekend Like a Vacation

https://journals.sagepub.com/doi/10.1177/1948550620916080
1•nreece•7m ago•0 comments

Show HN: Carton – Real Boundaries for Ruby

https://carton.dtcristo.com/
1•dtcristo•9m ago•0 comments

The Latest Anthropic Claude Models Contain AI Text Watermarks

https://www.oreilly.com/radar/the-latest-anthropic-claude-models-contain-ai-text-watermarks-what-...
1•pella•10m ago•0 comments

When AI Agrees Too Much: Manipulating Automated Code Review via Bias Injection [pdf]

https://dimitro.gr/assets/pdf/AASM27.pdf
1•matt_d•12m ago•0 comments

DeltaDB: A New System of Record for Agents [video]

https://www.youtube.com/watch?v=T7oydtzie88
1•iamA_Austin•13m ago•0 comments

How to disrespect your users

https://hypomanic.dev/disrespect-your-users
1•molw•13m ago•0 comments

How to Learn Mathematics: A Self-Study Roadmap

https://abakcus.com/articles/how-to-learn-mathematics
1•the-mitr•13m ago•0 comments

Funding The Web. The web is dying. Let's change that

https://ftw.fund/
1•rapnie•14m ago•0 comments

Who ClickHouse Competes With (And Who It Doesn't)

https://newcadence.io/insights/who-clickhouse-competes-with
1•benjaminwootton•20m ago•0 comments

The .http File Format

https://http-files.org/
2•figmert•24m ago•0 comments

Restoring a Soviet ES-4001 Mainframe Control Panel

https://hackaday.com/2026/10/22/restoring-a-soviet-es-4001-mainframe-control-panel/
2•sohkamyung•28m ago•0 comments

Move Slow and Fix Things

https://endler.dev/2024/move-slow-and-fix-things/
88•ahmedhossamdev•41m ago•1 comments

Europe might become poor in the course of the next 10-20 years

https://twitter.com/johnloeber/status/2113382520498925767
3•MrBuddyCasino•44m ago•0 comments

A Printer Printing onto Paper

https://twitter.com/macrofying/status/2112904628509528219
1•MrBuddyCasino•52m ago•0 comments

Mapping Economic Theory with AI [pdf]

https://andreaciccarone.github.io/claim_graphs_draft.pdf
1•theanonymousone•57m ago•0 comments

Let's Kill the Four-Chord Song

https://www.honest-broker.com/p/lets-kill-the-four-chord-song
2•paulpauper•58m ago•0 comments

Thoughts I had while reading your comment

https://dynomight.substack.com/p/comment
1•paulpauper•1h ago•0 comments

An artist's take on AI in math

https://3blue1brown.substack.com/p/an-artists-take-on-ai-in-math
1•vismit2000•1h ago•0 comments

Jhana 5: Romance with the Void

https://psychotechnology.substack.com/p/jhana-5-romance-with-the-void
1•paulpauper•1h ago•0 comments

Why even the smartest people on the planet can think dumb things

https://www.fastcompany.com/91611128/smartest-people-think-really-dumb-things
1•edwinfredy•1h ago•0 comments

How Civilization was made: complete history of Sid Meier's iconic strategy games

https://www.youtube.com/watch?v=SdfxTXCw15s
1•doppp•1h ago•0 comments

SK Hynix Pulls Plug on Memory-Chip Unit U.S. IPO on Market Jitters

https://www.wsj.com/tech/sk-hynix-shelves-plans-for-u-s-listing-of-memory-chip-unit-solidigm-e967...
2•snikolaev•1h ago•0 comments

PHP2SHELL Patch for Older Versions

https://github.com/wasdthedebugger/php2shell
2•wasdthedebugger•1h ago•0 comments

Trump's Gamble to End the Iran War

https://www.theatlantic.com/national-security/2026/10/trump-iran-war-strikes-after-midterms/689121/
2•hebelehubele•1h ago•1 comments

Agent Tools for Unreal Engine

https://app.simplystream.com/
4•astlouis44•1h ago•0 comments

Breakthrough vaccine for the deadliest skin cancer cut risk by almost half

https://www.washingtonpost.com/health/2026/10/22/breakthrough-vaccine-deadliest-skin-cancer-cut-r...
1•pseudolus•1h ago•1 comments

'Former inmates want to come back to visit': inside Florida's prison zoo

https://www.theguardian.com/artanddesign/2026/oct/22/florida-keys-prison-zoo-prisoners
1•1659447091•1h ago•0 comments