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!

BuyTheBy

https://zenodo.org/records/19684278
1•jruohonen•28s ago•0 comments

The Attention Economy Heist

https://www.bitchute.com/video/AbtcSkELGXHH/
1•untiledsource•39s ago•0 comments

MyHouse.wad

https://en.wikipedia.org/wiki/MyHouse.wad
1•kakadu•1m ago•0 comments

The Agentic Awakening

https://theagenticawakening.com/
1•kiyanwang•2m ago•0 comments

AI Just Had Another Math Breakthrough–With Help from a High-School Dropout

https://www.wsj.com/tech/ai/ai-math-riemann-hypothesis-anthropic-openai-22f98a87
1•sonabinu•2m ago•0 comments

Walkable ASCII Cyberpunk City in One HTML File [video]

https://www.youtube.com/watch?v=3YtygAx_C6A
2•SpyCoder77•10m ago•0 comments

Show HN: Tempered – AI Powered PC Optimizer

https://tempered.to/
2•AutomationGoat•14m ago•0 comments

Truth is no stranger to fiction

https://vincemichael.com/2026/06/18/truth-is-no-stranger-to-fiction/
1•jruohonen•17m ago•0 comments

Neural Networks: Backpropagation Concept with Manual Calculation

https://medium.easyread.co/neural-networks-backpropagation-concept-with-manual-calculation-748ac0...
1•bxcodec•17m ago•0 comments

Honest Government Ad – AI Data Centres [video]

https://www.youtube.com/watch?v=kON2ZI2BNj8
2•robrain•17m ago•1 comments

The Problem

https://intelligence.org/the-problem/
1•Bluestein•18m ago•0 comments

SXSW 2008: Download Squad and Google OpenSocial [video]

https://www.youtube.com/watch?v=--pAsR70_5U
1•mooreds•18m ago•0 comments

Show HN: DigitalEscapeTools – Privacy Tools

https://github.com/abdomk1998/awesome-digital-escape-tools
1•xabd•19m ago•0 comments

Show HN: The Map of Mathematics: Every structure a finite set can carry

https://murad-ahmadov.github.io/map-of-math/
1•Ahmadov114•20m ago•0 comments

Execution Is Getting Cheap Faster Than Verification Is

https://bharatsharma.pro/articles/execution-is-cheap-verification-isnt
1•mooreds•20m ago•0 comments

Open source, audited by GLM-5.3

https://huggingface.co/spaces/zai-org/OpenVuln
2•pama•22m ago•0 comments

The Non-Orientability of OAuth (2024)

https://workshop.vennfactory.com/p/the-non-orientability-of-oauth
1•mooreds•25m ago•0 comments

T3X/0 a Minimal Procedural Language

https://t3x.org/t3x/0/index.html
1•AlexeyBrin•25m ago•0 comments

Unsession.dev – open-source session management

https://unsession.dev/
1•cvolzer3•28m ago•0 comments

If Star Wars had a $10 Budget [video]

https://www.youtube.com/watch?v=0qy8Bnb9C1o
1•burnt-resistor•28m ago•0 comments

Dual Battery Automation in Home Assistant (Part 2)

https://du.nkel.dev/blog/2026-07-26_dual_battery_automation/
1•Helmut10001•30m ago•0 comments

Verifying Your FIDO2 Hardware Security Key: What a Browser Can Confirm

https://capytoolkit.com/blog/security-privacy/verifying-your-fido2-hardware-security-key-what-a-b...
1•ChillyCapy•31m ago•0 comments

Shove – a CLI tactics game Claude Fable 5 designed, built, and played

https://github.com/robss2020/claude-fable-5-having-fun
1•Bluestein•32m ago•0 comments

Show HN: Website Font Usage Explorer

https://explorer.withfudge.com
1•sim04ful•41m ago•0 comments

Title: Show HN: Gitoro – European Git Hosting, CI/CD and Collaboration Platform

https://gitoro.com/
2•steffenrudk•42m ago•1 comments

Hard to wake up for Fajr prayer so Ive developped an impossible to snooze alarm

https://play.google.com/apps/testing/com.appforfajr.app;https://groups.google.com/g/betatesters-f...
1•luckylokman•43m ago•1 comments

Title: DeepSeek V4 Is Live on ClawBox, and the Agentic Coding Jump Is Real

https://clawbox.com/blog/2026-08-14-deepseek-v4-is-live-on-clawbox-agentic-coding-jump
2•PeturID•44m ago•0 comments

Europe is stuck between "rock and a hard place" on launch costs & rocket reuse

https://arstechnica.com/space/2026/08/policy-experts-europe-stuck-between-rock-and-a-hard-place-o...
2•bell-cot•45m ago•1 comments

Writing and Reading Practices Revisited

https://www.laviniamarin.eu/writing-and-reading-practices-revisited/
1•plastic-enjoyer•49m ago•0 comments

Show HN: Agent-shell – vendor-neutral chat with AI agents in Emacs

https://xenodium.com/agent-shell-0-73-updates#agent-shell-enters-the-chat
3•xenodium•50m ago•1 comments