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•7mo ago

Comments

karmakaze•7mo 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•7mo 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•7mo 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•7mo 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•7mo 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•7mo 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•7mo 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•7mo ago
Hey Mark, I actually found this post via yours so thanks!

Kirkify AI – Free Face Swap Tool – Charlie Kirk Memes

https://kirkify.io
1•duanhjlt•4m ago•0 comments

Increasing code performance with LTO [video]

https://www.youtube.com/watch?v=fPGodf5hNoo
1•chii•7m ago•0 comments

US hits out at EU's 'suffocating regulations' after it fines Elon Musk's X

https://www.bbc.com/news/articles/c4g9kejzvw0o
2•begueradj•10m ago•0 comments

Quality vs. Quantity

https://www.thehuntingphotographer.com/blog/qualityvsquantity
1•thunderbong•10m ago•0 comments

Most Intense Solar Storm in Decades Shrunk Earth's Defense by 80% [video]

https://www.youtube.com/watch?v=NuxXsagVZ_s
2•keepamovin•11m ago•0 comments

Show HN: IntentusNet-A Secure IntentRouter and Runtime for Multi-Agent Workflows

1•balachandarmani•23m ago•0 comments

Joe Lonsdale Calls for Public Hangings

https://www.thenerdreich.com/joe-lonsdale-calls-for-public-hangings/
8•jethronethro•24m ago•1 comments

GitHub Actions Has a Package Manager, and It Might Be the Worst

https://nesbitt.io/2025/12/06/github-actions-package-manager.html
3•mperham•25m ago•0 comments

2-Stage Motor System: Redefining EV Technology [video]

https://www.youtube.com/watch?v=wR6pwdVWfDI
1•vinhnx•26m ago•0 comments

Watermelon Mosaic Virus

https://gardenbite.com/watermelon-mosaic-virus/
1•svenfaw•29m ago•0 comments

Ask HN: Why does every B2B SaaS have to look like Linear/Stripe?

2•PaulShin•32m ago•2 comments

Package Manager Design Tradeoffs

https://nesbitt.io/2025/12/05/package-manager-tradeoffs.html
2•todsacerdoti•35m ago•0 comments

Is Pixelfed sawing off the branch that the Fediverse is sitting on?

https://ploum.net/2025-12-04-pixelfed-against-fediverse.html
1•8organicbits•35m ago•0 comments

Grok 4.20 tops alpha arena trading benchmark

https://nof1.ai/leaderboard
1•knuppar•36m ago•0 comments

Show HN: I built a local-first URL redirector to stop doomscrolling

https://github.com/jordanblakey/url-redirector
1•jordan_blakey•37m ago•1 comments

Girls and boys solve math problems differently – with similar short-term results

https://theconversation.com/girls-and-boys-solve-math-problems-differently-with-similar-short-ter...
2•nradov•44m ago•1 comments

Flow Control: a programmer's text editor

https://flow-control.dev/
3•signa11•51m ago•0 comments

Coverd – gambling with your credit card purchases

https://www.coverd.us/about
1•smsm42•53m ago•0 comments

AI is mastering language. Should we trust what it says? (2022)

https://www.nytimes.com/2022/04/15/magazine/ai-language.html
2•maxutility•53m ago•0 comments

Pdsink: USB Power Delivery Sink library for embedded devices

https://github.com/pdsink/pdsink
1•zdw•1h ago•0 comments

Scientists link sugar substitute Sorbitol to liver disease

https://scitechdaily.com/scientists-link-popular-sugar-substitute-to-liver-disease/
10•mraniki•1h ago•0 comments

'The time has come to declare war on AI'

https://www.sfgate.com/tech/article/time-to-declare-war-ai-21221535.php
6•MilnerRoute•1h ago•1 comments

Trying VLLM Ideas on Apple Silicon with MLX (WIP)

https://github.com/waybarrios/vllm-mlx
1•waybarrios•1h ago•1 comments

AI Structural Redesign Proven on Gemini/Copilot

https://imgur.com/a/A8x18kc
1•korea_koh•1h ago•1 comments

Show HN: GitHired – Find Your Next 10x Engineer

https://www.githired.tech
4•raghavbansal11•1h ago•11 comments

Why Does A.I. Write Like That?

https://www.nytimes.com/2025/12/03/magazine/chatbot-writing-style.html
1•gmays•1h ago•0 comments

Rio de Janeiro's talipot palm trees bloom for the first and only time

https://en.jardineriaon.com/The-talipot-palm-trees-of-Rio-de-Janeiro-bloom-for-the-first-and-only...
2•1659447091•1h ago•0 comments

Show HN: TestPlanit – an open-source test case management system built for QA

https://demo.testplanit.com/en-US/signin
1•therealbrad•1h ago•0 comments

Bad Boy for Life: Sean Combs' History of Violence

https://www.rollingstone.com/music/music-features/diddy-friends-bad-boy-artists-abuse-violence-12...
1•handfuloflight•1h ago•0 comments

Platonic space: where cognitive and morphological patterns come from

https://thoughtforms.life/platonic-space-where-cognitive-and-morphological-patterns-come-from-bes...
2•andsoitis•1h ago•0 comments