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•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!

Dr. Jordan B. Peterson's 10 Step Guide to Clearer Thinking Through Essay Writing

https://medium.com/practicecomesfirst/dr-jordan-b-petersons-10-step-guide-to-clearer-thinking-thr...
1•eigenBasis•47s ago•0 comments

Comparing the best open source TranslateGemma projects

https://metalglot.com/blog/open-source-translategemma-comparison/
1•metalglot•3m ago•0 comments

The AI workflow I use to build apps

https://juanmanuelalloron.com/post/my-current-ai-workflow-for-building-apps/
1•juan_allo•9m ago•0 comments

Show HN: Pantheon – A Path 1 PlayStation 2 game engine (VU1 / EE / DMA)

https://github.com/94BILLY/PANTHEON
1•94BILLY•10m ago•0 comments

Can a Hand‑Built EV Change Mobility in East Africa? [video]

https://www.youtube.com/watch?v=gh4N_UNyKgk
1•thelastgallon•11m ago•0 comments

Farewell, Jeeves: Ask.com shuts down

https://techcrunch.com/2026/05/02/farewell-jeeves-ask-com-shuts-down/
2•mikece•11m ago•0 comments

Original Apollo 11 code open-sourced by NASA

https://www.tomshardware.com/software/original-apollo-11-code-open-sourced-by-nasa-original-comma...
1•ohjeez•12m ago•0 comments

Too Dark? Too Bright? Scientists Need Your Help to Make Reading Easier

https://news.ncsu.edu/2026/04/citizen-science-reading-project/
1•ohjeez•15m ago•0 comments

Intelligence Buying Intelligence

https://stevekrouse.com/intelligence
1•azhenley•16m ago•0 comments

Running Shoes Have Evolved – From Ancient Greece to Record-Breaking Marathons

https://www.nytimes.com/2026/05/01/sports/running-shoe-history-adidas-sneakers-london-marathon.html
1•y1n0•25m ago•0 comments

Why do crabs walk sideways? Scientists trace it back 200M years

https://www.sciencedaily.com/releases/2026/05/260501052844.htm
2•y1n0•30m ago•0 comments

US Navy signs deal with AI firm for training underwater drones

https://www.tomshardware.com/tech-industry/artificial-intelligence/us-navy-signs-deal-with-ai-fir...
1•y1n0•32m ago•0 comments

New Netflix documentary reexamines Winnie Mandela's divisive legacy

https://www.npr.org/2026/05/02/nx-s1-5800681/netflix-winnie-mandela
1•andsoitis•36m ago•0 comments

Reaching for the stars: enduring symbols of Soviet science in pictures

https://www.theguardian.com/artanddesign/gallery/2026/may/03/symbols-of-soviet-science-in-pictures
1•andsoitis•39m ago•0 comments

I touched a ZX Spectrum for the first time in decades

https://www.theguardian.com/games/2026/may/01/zx-spectrum-retro-games-dominik-diamond
1•andsoitis•40m ago•0 comments

The Wayfinders

https://longreads.com/2026/04/21/marshall-islands-soccer-team/
1•mooreds•41m ago•0 comments

How to prepare to be a startup founder (2021)

https://letterstoanewdeveloper.com/2021/11/22/how-to-prepare-to-be-a-startup-founder/
1•mooreds•43m ago•0 comments

Care Homes and Hotels in Japan Shut as Expansion Strategy Unravels

https://www.newsonjapan.com/article/149075.php
1•mikhael•46m ago•0 comments

Training language models to be warm can reduce accuracy and increase sycophancy

https://www.nature.com/articles/s41586-026-10410-0
1•0in•51m ago•0 comments

Why Nostr Will Win Where Mastodon and Bluesky Failed

https://primal.net/a/naddr1qvzqqqr4gupzqgycd7urua6ajmgc3jjunhcseekkz0swkljhdzs0pvftxlx6cgdnqq2hwv...
3•nout•51m ago•0 comments

A Common Proof of the Riemann Hypothesis and the Collatz Conjecture

https://www.academia.edu/166172334/A_Common_Proof_of_the_Riemann_Hypothesis_and_the_Collatz_Conje...
3•kristintynski•1h ago•3 comments

Maryland Is First to Ban A.I.-Driven Price Increases in Grocery Stores

https://www.nytimes.com/2026/05/01/business/surveillance-pricing-groceries-maryland.html
23•doener•1h ago•9 comments

Treat Agent Output Like Compiler Output

https://skiplabs.io/blog/codegen_as_compiler
1•azhenley•1h ago•0 comments

Clandestine network smuggling Starlink tech into Iran to beat internet blackout

https://www.bbc.com/news/articles/cvgzk91leweo
4•1659447091•1h ago•0 comments

The math behind how LLMs are trained and served

https://www.dwarkesh.com/p/reiner-pope
1•stopachka•1h ago•0 comments

ORBA: Orthogonal Reflection Bounded Ablation

https://huggingface.co/blog/grimjim/orthogonal-reflection-bounded-ablation
1•pyinstallwoes•1h ago•0 comments

Wyoming celebrates 'nuclear Renaissance' as feds approve license for a reactor

https://text.npr.org/nx-s1-5798892
5•mooreds•1h ago•0 comments

Show HN: Lisa a live dynamic wavetables synth you play and program in real-time

https://github.com/dr-schlange/LISA
1•drschlange•1h ago•0 comments

Virtual Scrolling

https://www.nicbarker.com/virtual-scrolling
1•azhenley•1h ago•0 comments

A Falcon 9 rocket will hit the Moon this summer at 7 times the speed of sound

https://arstechnica.com/space/2026/04/a-falcon-9-upper-stage-will-strike-the-moon-in-august/
1•bookofjoe•1h ago•0 comments