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!

Show HN: Instant live endpoints your front end needs, from natural language

https://github.com/thomscoder/zero-1
1•thomscoder•1m ago•0 comments

Relativity for Retired Engineers

https://arxiv.org/abs/2605.21660
1•calligram•2m ago•0 comments

Show HN: X – A programming language with switchable memory modes

https://github.com/xdotxxx/x
1•x-xxx•4m ago•0 comments

Nightly Rust Development with Devenv

https://paperless.blog/nightly-rust-devenv
1•l0b0•4m ago•0 comments

Britain announces social media ban for under-16s

https://www.reuters.com/business/media-telecom/britain-expected-set-out-under-16s-social-media-re...
1•austinallegro•5m ago•0 comments

Research Replication Attempt

https://paperless.blog/research-replication-attempt
1•l0b0•5m ago•0 comments

Testing desktop notifications with NixOS

https://paperless.blog/desktop-notification-tests
1•l0b0•5m ago•0 comments

The open-source Agent Communication Infrastructure

https://novu.co/connect/
1•scopsy•8m ago•0 comments

Open Source Seeds

https://www.opensourceseeds.org/en/home
2•Cider9986•8m ago•0 comments

Manticore-projects/aurscan: Scan AUR packages for malware using Claude LLM

https://github.com/manticore-projects/aurscan/tree/main
1•aiNohY6g•8m ago•0 comments

Ask HN: Who do you think will win the World Championship? (Off-topic)

1•beratbozkurt0•9m ago•0 comments

Infinite Campus Data Breach

https://haveibeenpwned.com/Breach/InfiniteCampus
1•rexthonyy•13m ago•0 comments

When Intelligence Gets Cheap, What Becomes Valuable?

https://agonora.com/blog/when-intelligence-gets-cheap
4•mw67•17m ago•0 comments

Ask HN: Do you have AI psychosis?

2•roschdal•21m ago•3 comments

USER INTERVIEW: How early stage founders do their marketing?

https://calendar.google.com/calendar/appointments/schedules/AcZssZ0MmuhXXdHNdTt4BM3BF-enJ3Rvqz9qp...
1•geethikaisuru•22m ago•1 comments

Alexandre Dumas Coauthor and Intellectual Property Lawsuits

https://clubstorica.substack.com/p/alexandre-dumas-had-a-co-author
1•remiko•23m ago•0 comments

The AI layoff wave is becoming a powder keg

https://techcrunch.com/2026/06/15/the-ai-layoff-wave-is-becoming-a-powder-keg/
2•gruntled-worker•23m ago•0 comments

UK to ban under 16s on Social Media

https://www.theguardian.com/media/2026/jun/15/social-media-ban-uk-under-16-starmer
4•u02sgb•25m ago•1 comments

Quest 3 Accessory Makes Your VR Avatar Expressive Without Face Tracking

https://www.uploadvr.com/pieeg-xr-makes-your-vr-avatar-expressive-without-face-tracking/
2•Christiangmer•25m ago•0 comments

We're not just fighting AI

https://sayyesdono.pagecord.com/were-not-just-fighting-ai
1•BrunoBernardino•31m ago•0 comments

The Path to Google's #1 Position

https://medium.com/@thesuperrepemail/the-path-to-googles-1-position-f6aacbf1f758
1•mssblogs•33m ago•0 comments

Testing Uruky to Replace Kagi

https://rewiring.bearblog.dev/kagi-to-uruky/
1•BrunoBernardino•34m ago•0 comments

Large language models pass a standard three-party Turing test

https://www.pnas.org/doi/10.1073/pnas.2524472123?trk=3246d38d-657b-4330-8a8c-4fca0385cac6&sc_chan...
1•cassianoleal•40m ago•0 comments

Show HN: Check – prefix any command to know if it'll work before you run it

https://www.golproductions.com/check
1•golproductions•40m ago•0 comments

Owning Your Token Capital: Building the Enterprise AI Learning Loop

https://twitter.com/LakshyAAAgrawal/status/2066392532540670354
1•LakshyAAAgrawal•42m ago•0 comments

Ask HN: Renting GPUs, do you mostly care about price, reliability, or setup?

1•tinstar112•43m ago•0 comments

CUDA-like programming of Cerebras WSE

https://github.com/greg1232/cerebras-py-sim
1•gdiamos•50m ago•1 comments

How to Be Good at AI Research

https://twitter.com/i/status/2064686372737454155
1•yarapavan•53m ago•0 comments

I sped up the test suite by 2x with one simple change

https://gaultier.github.io/blog/I_sped_up_the_test_suite_by_x2.html
1•broken_broken_•54m ago•0 comments

Care about what you do – even when nobody's watching

https://mattcasmith.net/2026/05/31/care-about-what-you-do
2•signa11•54m ago•0 comments