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!

DOJ blames China for string of hacks targeting federal agencies and hospitals

https://www.politico.com/news/2026/08/26/doj-fbi-china-hacks-01050956
1•pir8life4me•36s ago•0 comments

A European Tombola: Elect Politicians, Randomize Their Responsibilities

https://coffee.link/the-european-tombola/
1•PhilKunz•1m ago•0 comments

A Society of Cheats

https://www.theatlantic.com/ideas/2026/08/ai-use-college-cheat/688451/
1•fortran77•2m ago•0 comments

Keeping "Engineering" in "Software Engineering"

https://blog.maxgale.co/p/keeping-engineering-in-software-engineering
1•dimes•3m ago•0 comments

Drug that targets an inflammatory enzyme could help prevent lung cancer

https://news.mit.edu/2026/drug-targeting-inflammatory-enzyme-could-help-prevent-lung-cancer-0814
1•gmays•3m ago•0 comments

Fast Forward

https://www.nytimes.com/2026/08/29/briefing/fast-forward.html
1•saikatsg•3m ago•0 comments

Azure Linux Desktop Concept

https://www.boxofcables.dev/i-made-an-azure-linux-desktop-concept-to-run-on-my-thinkpad/
1•kristianpaul•5m ago•0 comments

A Window into an Alternative Timeline of Music

https://undercoverlocal.wordpress.com/2026/04/06/a-window-into-an-alternative-timeline-of-music/
1•airhangerf15•6m ago•0 comments

Mechanics of Healthcare

https://drmaanasjain.substack.com/p/mechanics-of-healthcare
1•thunderbong•9m ago•0 comments

DumpsterCluster: From Dumpster Diving to Serving Llama-70B on $60 GPUs

https://arxiv.org/abs/2608.14614
1•bookofjoe•9m ago•0 comments

Daring flyover during SA-NZ Rugby Match in Cape Town at 14 meters

https://www.instagram.com/p/Dco6DYxjs4S/
1•sgt•11m ago•1 comments

Why Syracuse Can't Attract the Students It Needs to Pay the Bills

https://www.wsj.com/us-news/education/syracuse-student-application-enrollment-crisis-budget-ff142896
1•alephnerd•11m ago•0 comments

i-RAM

https://en.wikipedia.org/wiki/I-RAM
1•cassepipe•13m ago•0 comments

Cyclists have crashed on Market St. tracks for 130 years. Why can't SF fix them?

https://sfstandard.com/2026/08/28/market-street-cyclist-safety-hazard/
1•zachwdc•13m ago•0 comments

Brave browser adds email aliases to help users evade tracking

https://www.bleepingcomputer.com/news/security/brave-browser-adds-email-aliases-to-help-users-eva...
2•Brajeshwar•14m ago•0 comments

RSSMonster – An agentic RSS reader built on local embeddings and small models

https://github.com/pietheinstrengholt/rssmonster/
1•pietheinstrengh•15m ago•1 comments

Laser Graffiti

https://laser.consti.de/
1•con•16m ago•0 comments

The IBM PC, Part 2: Tsunami

https://technicshistory.com/2026/08/29/the-ibm-pc-part-2-tsunami/
1•cfmcdonald•17m ago•0 comments

In Chile's Atacama Desert, the biggest telescope ever built is taking shape

https://www.bbc.com/future/article/20260827-the-biggest-telescope-of-all-time-is-nearly-ready-cou...
1•Betelbuddy•22m ago•0 comments

I came across DBYTE, a small programming language

1•lexsandra56•23m ago•1 comments

Running an LLM in the Browser: Verifying WebGPU, and Local Inference

https://capytoolkit.com/blog/developer-tools/running-llm-browser-verifying-webgpu-model-hashes-lo...
1•ChillyCapy•29m ago•0 comments

Crossing Boundaries with Integration Events

https://deniskyashif.com/2026/08/29/crossing-boundaries-with-integration-events/
1•alembic_fumes•32m ago•0 comments

FreeToken: Efficient Edge-Native Moe Serving with Bandwidth-Adaptive Execution

https://arxiv.org/abs/2608.16157
2•gmays•34m ago•0 comments

TurnBench

https://turnbench.sesame.com/
1•selimonder•35m ago•0 comments

But where does taste come from?

https://dustycloud.org/blog/but-where-does-taste-come-from/
2•paroneayea•35m ago•0 comments

Show HN: I built a physical dream machine for my wife

https://twitter.com/oblomovius/status/2094053464552698325
1•oblo_mov•36m ago•2 comments

Ask HN: How do I make sure ChatGPT/Claude/Gemini forget all prior conversations?

1•chirau•37m ago•0 comments

ClaudeDevs: We're permanently raising standard weekly limits in Claude Code

https://twitter.com/chandlerwilcox/status/2093742530659766324
2•isolli•38m ago•1 comments

Rust Function Overloading – Call for Experimentation

https://blog.rust-lang.org/inside-rust/2026/08/19/overloading-experiment/
2•torutofu•39m ago•0 comments

Write the Fucking Manual

https://wtfmbook.com/
2•theletterf•41m ago•0 comments