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!

Various locale mismatch scenarios in Windows clipboard text format synthesis

https://devblogs.microsoft.com/oldnewthing/20251211-37/?p=111858
1•ibobev•35s ago•0 comments

The Night Before Deployment: How Melian Saved Christmas

https://perladvent.org/2025/2025-12-12.html
1•oalders•4m ago•1 comments

Deep Thinking: Where Machine Intelligence Ends and Human Creativity Begins

https://www.kasparov.com/deep-thinking-ai/
1•chhenning•4m ago•0 comments

Just Change the Key

https://www.johndcook.com/blog/2025/12/11/just-change-the-key/
1•ibobev•5m ago•0 comments

Berlin Approves New Expansion of Police Surveillance Powers

https://reclaimthenet.org/berlin-approves-new-expansion-of-police-surveillance-powers
2•robtherobber•5m ago•0 comments

Gist of Go: Concurrency is out

https://antonz.org/go-concurrency-released/
2•ibobev•6m ago•0 comments

Show HN: CyberLoop – A control-loop architecture for stable LLM agents

https://github.com/roackb2/cyberloop
1•roackb2•6m ago•1 comments

TiddlyWiki – a non-linear personal web notebook

https://tiddlywiki.com/
1•sogen•6m ago•0 comments

Show HN: Radiotron (alpha) a Fast Medical Segmentation and Visualization Tool

https://nicktasios.nl/radiotron/
1•Grieverheart•6m ago•0 comments

Show HN: A diagram a code rendering tool for network documentation

https://drawthenet.io/
2•ratchetclank•8m ago•0 comments

Meta Reportedly Set to Raise VR Headset Prices, Keep Existing Devices Longer

https://www.roadtovr.com/meta-quest-3-price-hike-report/
2•rob74•9m ago•0 comments

Oral Exams Improve Engineering Student Performance, Motivation (2023)

https://today.ucsd.edu/story/oral-exams-improve-engineering-student-performance-motivation
1•sonabinu•10m ago•0 comments

Ask HN: The AGI Race That Might Not Be a Race

1•razodactyl•10m ago•0 comments

Towards Modeling Road Access Deprivation in Sub-Saharan Africa

https://arxiv.org/abs/2512.02190
1•PaulHoule•11m ago•0 comments

Oasis: Pooling PCIe Devices over CXL to Boost Utilization

https://dl.acm.org/doi/10.1145/3731569.3764812
2•blakepelton•11m ago•1 comments

Will blockbuster obesity drugs revolutionize addiction treatment?

https://www.nature.com/articles/d41586-025-03911-x
1•qnleigh•14m ago•0 comments

White House Turning to Private Firms in Cyber Offensive

https://www.bloomberg.com/news/articles/2025-12-12/trump-administration-turning-to-private-firms-...
3•newer_vienna•15m ago•0 comments

New York's Best Espresso? (2002)

https://www.nytimes.com/2002/05/15/dining/critic-s-notebook-new-york-s-best-espresso.html
1•nivethan•15m ago•1 comments

CM0 – a new Raspberry Pi you can't buy

https://www.jeffgeerling.com/blog/2025/cm0-new-raspberry-pi-you-cant-buy
3•speckx•16m ago•0 comments

Stanford Medicine study shows mRNA-based Covid-19 vaccines can cause myocarditis

https://med.stanford.edu/news/all-news/2025/12/myocarditis-vaccine-covid.html
2•DeusExMachina•16m ago•0 comments

Nicaea: The council that shaped the West

https://engelsbergideas.com/notebook/nicaea-the-council-that-shaped-the-west/
2•teleforce•16m ago•1 comments

Show HN: Quorum – Multi-agent CLI debates (AutoGen back end and React/Ink TUI)

https://github.com/Detrol/quorum-cli
1•Detrol•17m ago•0 comments

Intel has tested chipmaking tools from firm with sanctioned China unit

https://www.reuters.com/world/china/intel-has-tested-chipmaking-tools-firm-with-sanctioned-china-...
2•payamb•19m ago•0 comments

Show HN: Dssrf – A safe‑by‑construction SSRF defense library for Node.js

1•relunsec•19m ago•0 comments

Beyond Data Filtering: Knowledge Localization for Capability Removal in LLMs

https://arxiv.org/abs/2512.05648
1•yorwba•19m ago•0 comments

Anyone used clear aligners like Smile White?

https://www.smilewhite.co.uk/
1•trooperbill•21m ago•0 comments

Rivian Reveals New AI Assistant, Lidar, and Autonomous Driving Coming in 2026

https://gizmodo.com/rivian-reveals-new-ai-assistant-lidar-and-autonomous-driving-coming-in-2026-2...
1•frozenseven•22m ago•0 comments

The Ring, the Holon, and the Revenge of the Objective

https://estebanandthecollective.substack.com/p/the-ring-the-holon-and-the-revenge
1•asplake•25m ago•0 comments

AI that reads your Git history so you don't have to write status reports

1•slmslm•25m ago•0 comments

Show HN: PageSpeak – Talk to book characters in their world or ours

https://www.pagespeak.ai/books
1•drkph•26m ago•0 comments