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•11mo ago

Comments

karmakaze•11mo 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•11mo 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•11mo 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•11mo 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•11mo 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•11mo 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•11mo 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•11mo ago
Hey Mark, I actually found this post via yours so thanks!

When your body is hungry, it eats itself, removing all sick and aging cells

https://techfixated.com/when-the-human-body-is-hungry-it-eats-itself-removing-all-sick-and-aging-...
1•hochmartinez•4m ago•0 comments

Buddha-Dhamma for Inquiring Minds

https://www.suanmokkh.org/books/121
1•stared•6m ago•0 comments

JSON Canvas Spec

https://jsoncanvas.org/spec/1.0/
1•tobr•7m ago•0 comments

Gleam Decoding and Why Dynamic.from Had to Die

https://blog.guillheu.dev/articles/gleam-decoding/
1•TheWiggles•8m ago•0 comments

The Engineeringification of Everything

https://posthog.com/newsletter/engineeringification-of-everything
1•iddan•8m ago•0 comments

ToolBoxHub

https://estevao-jun.github.io/toolboxhub/
1•sa-m•10m ago•1 comments

It turns out Fortnite isn't the forever game after all

https://www.gamesindustry.biz/it-turns-out-fortnite-isnt-the-forever-game-after-all-opinion
1•lentil_soup•11m ago•0 comments

Google is to journalism what Vikings were to monks. Now their man will run BBC

https://www.theregister.com/2026/03/30/bbc_opinion/
1•defrost•15m ago•1 comments

Three-processor inference on AMD Ryzen AI 300

https://github.com/Peterc3-dev/rag-race-router
1•peterc3dev•21m ago•1 comments

Hacker News

https://github.com/qinheming/BloClaw
1•qinheming624•25m ago•0 comments

Sycophantic AI decreases prosocial intentions and promotes dependence

https://www.science.org/doi/10.1126/science.aec8352
2•xiaoyu2006•26m ago•0 comments

Resurrecting Sinistar: A Cyber-Archaeology Documentary [video]

https://www.youtube.com/watch?v=lCuoUSDBVac
1•sagacity•27m ago•0 comments

We're Pausing Asimov Press

https://www.asimov.press/p/pause
2•bookofjoe•27m ago•0 comments

Give your AI agent a real email address (open source, Cloudflare)

https://github.com/Digidai/mails
1•genedai•28m ago•3 comments

Startup wants to change how mathematicians do math

https://www.technologyreview.com/2026/03/25/1134642/this-startup-wants-to-change-how-mathematicia...
1•isaacfrond•31m ago•0 comments

Show HN: We Built 450 Modular Agent Skills for Medical Research

https://github.com/aipoch/medical-research-skills
1•The_resa•34m ago•0 comments

Show HN: Smux – split terminals for AI agents

https://github.com/gergomiklos/smux
1•gregolo•35m ago•0 comments

4.0M tokens for Next.js vs. 2.5M tokens for Wasp: same app, same prompt

https://wasp.sh/blog/2026/03/26/nextjs-vs-wasp-40-percent-less-tokens-same-app
1•matijash•38m ago•1 comments

Ask HN: Why do you flag a service when it goes down?

1•haebom•39m ago•0 comments

Vibe coding could mark the end of the App Store review process as we know it

https://9to5mac.com/2026/03/29/vibe-coding-developers-report-long-app-store-review-queues/
1•thm•41m ago•2 comments

The case for a universal basic income in the era of A.I

https://www.americamagazine.org/short-take/2026/03/23/universal-basic-income-ai/
1•robtherobber•43m ago•0 comments

Galton's Law of Mediocrity: Why Large Language Models Regress to the Mean

https://arxiv.org/abs/2509.25767
2•camillomiller•45m ago•0 comments

Stripe stole $85k and closed our account

12•MelkerWendelbo•50m ago•5 comments

Apple nailed AI by doing fucking nothing lol

https://xcancel.com/cryptopunk7213/status/2038351931589193953?s=20
9•doener•54m ago•5 comments

Stripe Dashboard Down

1•HPMOR•54m ago•0 comments

Stripe is down

https://status.stripe.com/
21•tompccs•55m ago•6 comments

In Praise of Plasma TVs

https://hackaday.com/2025/11/18/in-praise-of-plasma-tvs/
1•jruohonen•55m ago•0 comments

Show HN: AnyVali – Validation library that works the same across 10 languages

https://anyvali.com/
1•mrinc•57m ago•0 comments

GPL-compliant reasonable legal notices and author attributions

https://www.fsf.org/blogs/community/gpl-compliant-legal-notices-author-attributions
2•Tomte•59m ago•0 comments

You're right to be anxious about AI: This is how much we are building

https://www.dumky.net/posts/youre-right-to-be-anxious-about-ai-this-is-how-much-we-are-building/
3•dmkii•1h ago•3 comments