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

Comments

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

Euro-Office – Your sovereign office

https://github.com/Euro-Office
1•XzetaU8•2m ago•1 comments

College instructor turns to typewriters to curb AI use, teach life lessons

https://apnews.com/article/typewriter-ai-cheating-chatgpt-cornell-ce10e1ca0f10c96f79b7d988bb56448b
1•1vuio0pswjnm7•3m ago•0 comments

Disposable Tools Manifesto

https://blog.vtemian.com/post/disposable-tools-manifesto/
1•vtemian•3m ago•0 comments

AI Damaged a Friendship

https://www.bartmol.io/how-ai-damaged-a-friendship/
1•Maulwurf•6m ago•0 comments

Vincelwt/gloomberb: Finance terminal, in your terminal

https://github.com/vincelwt/gloomberb
1•rcarmo•7m ago•0 comments

Java: The Foreign Function and Memory API

https://dev.java/learn/ffm/
1•tosh•8m ago•0 comments

Show HN: I developed a node editor framework using gpui

https://github.com/tu6ge/ferrum-flow
2•tu6ge•16m ago•0 comments

Humans Persistently Devalue AI-Generated Creative Writing

https://psycnet.apa.org/fulltext/2027-12675-001.html
1•Growtika•21m ago•0 comments

The end of password pain: building frictionless authentication at the Guardian

https://theguardian.engineering/blog/the-end-of-password-pain-building-frictionless-authenticatio...
2•Tomte•24m ago•0 comments

Anthropic buys biotech startup Coefficient Bio in $400M deal: Reports

https://techcrunch.com/2026/04/03/anthropic-buys-biotech-startup-coefficient-bio-in-400m-deal-rep...
1•doppp•25m ago•0 comments

From Hierarchy to Intelligence

https://block.xyz/inside/from-hierarchy-to-intelligence
1•nomagicbullet•25m ago•0 comments

PlayStation 3 emulator makes Cell CPU 'breakthrough' that improves performance

https://www.tomshardware.com/video-games/playstation/rpcs3-ps3-emulator-gets-cell-cpu-breakthroug...
1•adunk•26m ago•0 comments

VLA learns how to act. S2S decides whether the motion is physically trustworthy

https://github.com/timbo4u1/S2S
1•s2sphysical•34m ago•0 comments

Axplorer: Democratizing the search for interesting mathematical constructions

https://axiommath.ai/territory/axplorer
1•T-A•35m ago•0 comments

I stopped hitting Claude's usage limits – things I changed

https://twitter.com/0x_kaize/status/2038286026284667239
3•taubek•35m ago•0 comments

Hitachi Ltd, Part I

https://www.abortretry.fail/p/hitachi-ltd-part-i
1•XzetaU8•37m ago•0 comments

France pulls last gold held in US for $15B gain

https://www.mining.com/france-pulls-last-gold-held-in-us-for-15b-gain/
19•teleforce•38m ago•9 comments

A Tale of AI Betrayal and Snapshotting Victory

https://makc.co/essays/gpt-clusterfuck/
3•makc•39m ago•0 comments

Dennett's Real Patterns in Science and Nature

https://direct.mit.edu/books/oa-edited-volume/6112/Dennett-s-Real-Patterns-in-Science-and-Nature
1•__patchbit__•39m ago•0 comments

Microsoft Silverlight

https://en.wikipedia.org/wiki/Microsoft_Silverlight
1•tosh•43m ago•0 comments

The Image Boards of Hayao Miyazaki

https://animationobsessive.substack.com/p/the-image-boards-of-hayao-miyazaki
1•vinhnx•45m ago•0 comments

Show HN: Mantyx – Agent Control Plane with Centralized MCP Management

https://mantyx.io/mcp
3•mantyx•47m ago•0 comments

GPU Memory for LLM Inference (Part 1)

https://darshanfofadiya.com/llm-inference/gpu-memory.html
3•subset•51m ago•0 comments

The Population Bomb (1968)

https://en.wikipedia.org/wiki/The_Population_Bomb
2•downboots•1h ago•0 comments

Show HN: WebGPU LLM inference comprehensive benchmark

https://arxiv.org/abs/2604.02344
2•yu3zhou4•1h ago•0 comments

Show HN: Let's Turn Your Claude into Socrates

https://github.com/RoundTable02/socrates-skill
2•bevibing•1h ago•0 comments

FluxFest Season 1 kick off soon

1•loveTech•1h ago•3 comments

Show HN: Cloclo – open-source multi-agent CLI runtime for 13 LLM providers

https://www.npmjs.com/package/cloclo
4•seifbenayed1992•1h ago•2 comments

The Six Dumbest Ideas in Computer Security (2005)

https://www.ranum.com/security/computer_security/editorials/dumb/
2•Tomte•1h ago•1 comments

ELF and Dynamic Linking

https://fmdlc.github.io/tty0/Linux_ELF_Dynamic_linking_EN.html
1•signa11•1h ago•0 comments