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!

Alberta to hold referendum on whether to remain in Canada

https://www.bbc.com/news/articles/cvgze8n5dxko
1•JumpCrisscross•5s ago•0 comments

Swoin.io – Community-driven roadmaps backed by real money

https://www.swoin.io/
1•DenisManig•1m ago•0 comments

Prize-winning story published in Granta was (likely) written by AI

https://lithub.com/a-prize-winning-story-published-in-granta-was-very-likely-written-by-ai/
1•vintagedave•2m ago•0 comments

Largest North American Bitcoin ATM operator, Bitcoin Depot, files for bankruptcy

https://www.web3isgoinggreat.com/single/bitcoin-depot-bankruptcy
1•t-3•3m ago•0 comments

Why I built wrkflw to validate and run GitHub Actions locally

https://blog.gokuls.in/posts/why-i-built-wrkflw.html
2•bahdotshxx•4m ago•0 comments

Housing squeeze in Swiss boom region fuels support for population cap

https://www.reuters.com/world/europe/housing-squeeze-swiss-boom-region-fuels-support-population-c...
1•JumpCrisscross•6m ago•0 comments

Show HN: LocalPanel – Manage any SSH server from Mac/Windows, no server agents

1•nesdzoltd•6m ago•0 comments

Advanced adenomas among young endurance runners: A prospective prevalence study

https://www.sciencedirect.com/science/article/pii/S1877782126001037
2•bookofjoe•8m ago•1 comments

The 8-Bit Guy made an even faster "Random Maze " [video]

https://www.youtube.com/watch?v=cPZdKogq63k
1•Unai•9m ago•0 comments

Fun: macOS Upgrade Notice

https://mastodon.social/@meysam81/116618247498810037
3•meysamazad•10m ago•0 comments

Sam Altman Won in Court Against Elon Musk. But, We All Lost

https://www.newyorker.com/news/letter-from-silicon-valley/sam-altman-won-in-court-against-elon-mu...
3•littlexsparkee•11m ago•0 comments

Is Capability a Liability? More Capable Language Models Make Worse Forecasts

https://arxiv.org/abs/2605.22672
1•sbulaev•12m ago•0 comments

Three Ways to See Distance – Camera in Robotics

https://atomsfrontier.substack.com/p/three-ways-to-see-distance
1•jpatel3•13m ago•0 comments

ExtendDB – open-source DynamoDB-compatible API adapter with pluggable storage

https://github.com/ExtendDB/extenddb
2•akajla•13m ago•0 comments

AutoViz: The last project by Leland Wilkinson

https://github.com/h2oai/autoviz
2•johnygomez•13m ago•1 comments

Beyond Deterministic Surfaces: Uncertainty-Aware Geometry Processing

https://blog.siggraph.org/2026/05/beyond-deterministic-surfaces-uncertainty-aware-geometry-proces...
1•rbanffy•14m ago•0 comments

Crypto industry braces for quantum computing threat

https://www.ft.com/content/99c1c1e7-1a1c-479c-9fc8-e21aea5c3f0e
1•JumpCrisscross•14m ago•0 comments

Department of War Publishes Second Release of UFO Files

https://twitter.com/DeptofWar/status/2057799788003737844
1•keepamovin•15m ago•0 comments

Redframes

https://github.com/maxhumber/redframes
1•tosh•15m ago•0 comments

Large language models pass a standard three-party Turing test

https://www.pnas.org/doi/10.1073/pnas.2524472123
2•geox•20m ago•0 comments

AI Edits a Classical Chinese Paper: Multi-Model Stress Test

https://zenodo.org/records/20343571
1•AICHEN•20m ago•0 comments

UK scientists developing new Ebola vaccine that could be ready in months

https://www.bbc.co.uk/news/articles/cy82gkr7xzlo
2•asplake•21m ago•0 comments

China's AI optimism isn't what it seems

https://www.chinatalk.media/p/chinas-ai-optimism-isnt-what-it-seems
2•speckx•22m ago•0 comments

Department of War Publishes Second Release of UAP Files

https://www.war.gov/UFO/?releaseDate=Release+02#records
1•keepamovin•22m ago•0 comments

Quadball Europe Announces European Quadball Cup 2026

https://www.quidditcheurope.org/post/quadball-europe-announces-european-quadball-cup-2026
1•throw_await•23m ago•0 comments

Ask HN: How much AI is in your writing?

2•js98•23m ago•3 comments

Open Source Silicon: the RedHat model works for chip design

https://www.youtube.com/watch?v=MAgHmIu1bK8
2•johncole•24m ago•0 comments

Many-Valued Logic

https://en.wikipedia.org/wiki/Many-valued_logic
1•the-mitr•25m ago•0 comments

Show HN: LLM-mock – Record real LLM API responses once, replay them in tests

https://pypi.org/project/llm-mock
1•roman_t•25m ago•0 comments

Agent-Based Modeling for Simulating U.S. Presidential Elections

https://arxiv.org/abs/2512.05982
2•ian_j_butler•25m ago•0 comments