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!

The Long, Knotty, World-Spanning Story of String

https://hakaimagazine.com/features/the-long-knotty-world-spanning-story-of-string/
1•bookofjoe•1m ago•0 comments

Blogging in 2025: Screaming into the Void

https://askmike.org/articles/blogging-in-2025-screaming-into-the-void/
1•askmike•2m ago•0 comments

Apple iOS 27 to Be No-Frills 'Snow Leopard' Update

https://www.bloomberg.com/news/newsletters/2025-11-23/apple-ios-27-snow-leopard-like-quality-focu...
1•dlx•3m ago•1 comments

Billionaire UBS Clients Plot Private Equity Funds' Retreat

https://www.bloomberg.com/news/articles/2025-12-04/billionaire-ubs-clients-plot-retreat-from-priv...
1•petethomas•6m ago•0 comments

EU plans five AI gigafactories with 100k high-performance AI chips

https://the-decoder.com/eu-plans-five-ai-gigafactories-with-100000-high-performance-ai-chips/
1•Vaslo•6m ago•0 comments

Stacktower: An Accidental Deep Dive

https://stacktower.io/
2•signa11•8m ago•0 comments

CDC vaccine panel realizes again it has no idea what it's doing, delays big vote

https://arstechnica.com/health/2025/12/cdc-vaccine-panel-realizes-again-it-has-no-idea-what-its-d...
2•voxadam•11m ago•0 comments

Ukraine's 'Crazy' New Drone Tech [video]

https://www.youtube.com/watch?v=bsy5xzdKahU
1•thomassmith65•15m ago•0 comments

Chinese-linked hackers use back door for potential 'sabotage,' US and Canada say

https://www.reuters.com/world/china/chinese-linked-hackers-use-back-door-potential-sabotage-us-ca...
4•737min•17m ago•0 comments

Gemini 3 Deep Think is now available in the Gemini app

https://blog.google/products/gemini/gemini-3-deep-think/
1•jamesyun•22m ago•0 comments

Life_logger – Turn your daily experiences into retro thermal receipt-style logs

https://life-logger.netlify.app/
1•Eyoz•24m ago•1 comments

Ask HN: How do LLMs perform in the low-level space?

1•kode-targz•26m ago•0 comments

Our Commitment to Your Ongoing Success with Discourse

https://blog.discourse.org/2025/12/our-commitment-to-your-ongoing-success-with-discourse/
1•kevmarsden•26m ago•1 comments

PublicQ – Free Open Source Assessment and Exam Platform

https://publicq.app/
1•mtokarev•28m ago•0 comments

80s version of Tinder was 'video dating' was incredibly awkward (2015)

https://www.businessinsider.com/found-footage-awkward-80s-video-dating-2015-12
1•raw_anon_1111•32m ago•0 comments

Untapped Potential in the Java Build Tool Experience

https://javapro.io/2025/10/23/untapped-potential-in-the-java-build-tool-experience/
1•lihaoyi•36m ago•0 comments

Show HN: WishKeeper – Gift coordination that keeps the surprise alive

https://wishkeeper.io
1•colinmilhaupt•38m ago•0 comments

You can now text and drive in Tesla's (during FSD)

https://twitter.com/elonmusk/status/1996631421449072754
2•ryanvogel•39m ago•1 comments

Lyrics viewer for Linux that integrates with MPRIS

https://github.com/BEST8OY/LyricsMPRIS-Rust
1•amadeuspagel•44m ago•0 comments

Show HN: Flooder – Making Persistent Homology Practical for Industrial Use Cases

https://plus-rkwitt.github.io/flooder/
2•elektm•47m ago•2 comments

You may loose your company email, but never lose your emails and contacts again

https://app.trevally.io/login.html
4•danvc•52m ago•7 comments

Do We Understand SQL?

https://www.youtube.com/watch?v=qiVUf9X6ItM
1•jamii•55m ago•0 comments

The Disappearance of an Anti-AI Activist

https://www.theatlantic.com/technology/2025/12/sam-kirchner-missing-stop-ai/685144/
10•fortran77•1h ago•2 comments

The Future of AI Code Review: From Bug Detection to Compliance Guardianship

https://codeprot.com/articles/ai-code-review-future.html
1•allenz_cheung•1h ago•1 comments

Ultrasonic device dramatically speeds harvesting of water from the air

https://news.mit.edu/2025/ultrasonic-device-dramatically-speeds-harvesting-water-air-1118
12•bookofjoe•1h ago•5 comments

NeXTSTEP Release 3: A Demonstration with Steve Jobs [video]

https://www.youtube.com/watch?v=rf5o5liZxnA
3•inatreecrown2•1h ago•0 comments

New Browser-Based CAD System Is Best Friends with Triangle Meshes

https://hackaday.com/2025/12/04/new-browser-based-cad-system-is-best-friends-with-triangle-meshes/
3•mmiscool•1h ago•0 comments

Dwarkesh Patel's Second Interview with Ilya Sutskever

https://thezvi.substack.com/p/on-dwarkesh-patels-second-interview
2•paulpauper•1h ago•0 comments

Brussels writes so many laws

https://www.siliconcontinent.com/p/how-brussels-writes-so-many-laws
19•amadeuspagel•1h ago•11 comments

Friends Are Your Destiny

https://arnoldkling.substack.com/p/your-friends-are-your-destiny
1•paulpauper•1h ago•0 comments