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!

Trump says anyone who uses the phrase "artificial intelligence" is "the enemy"

https://breakingthenews.net/Article/Trump:-Anyone-using-term-%27Artificial-Intelligence%27-is-the...
2•mikelgan•1m ago•1 comments

Vance says Microsoft, Adobe barred from sponsoring H-1B workers for green cards

https://www.msn.com/en-us/money/general/vance-says-microsoft-adobe-barred-from-sponsoring-h-1b-wo...
1•ilamont•2m ago•0 comments

Norway govt considers banning Meta-glasses in selected places

https://www.regjeringen.no/no/aktuelt/vil-innfore-midlertidig-forbud-mot-ki-briller/id3175516/
1•lensecat•2m ago•1 comments

Tanzania Education Project

https://tanzaniaeducationproject.org/
1•mooreds•3m ago•0 comments

Gridmaster 5000 – A puzzle game written in Margeux

https://margeux.duckdns.org/game.html
1•vegnus•3m ago•1 comments

When You Disagree with a Decision

https://michaelheap.com/when-you-disagree-with-a-decision/
1•mooreds•4m ago•0 comments

Forgive the Bad Texters

https://www.theatlantic.com/magazine/2026/11/text-communication-social-obligation/688696/
1•mooreds•5m ago•0 comments

Russia's Yandex datacenter destroyed by Ukrainian drone strike

https://www.reuters.com/world/europe/russias-yandex-says-unclear-whether-data-centre-can-be-resto...
2•znnajdla•5m ago•0 comments

Kurzgesagt: Hugging Face hack by AI [video]

https://www.youtube.com/watch?v=ujkD4SxPKOI
1•boernard•6m ago•0 comments

OpenAI annualised revenues $20B less than previously signalled

https://www.ft.com/content/b66a9858-f8fb-46cb-b506-44bfe26fca2a
3•mfiguiere•6m ago•0 comments

Evil Font Tool

https://github.com/DoctorEww/EvilFontTool
1•woliveirajr•8m ago•0 comments

Sober Drivers Still Face Nearly 4x Nighttime Risk

https://waymo.com/blog/2026/10/sober-driving-benchmarks/
2•boulos•9m ago•0 comments

Bridging technical depth and usability: The story behind Radar's redesign

https://blog.cloudflare.com/radar-redesign/
1•sdko•9m ago•0 comments

Show HN: Typecoach – one-minute typing drills on your slowest keys, for macOS

https://typecoach.usefulisms.com
1•sonthomsen•10m ago•0 comments

Making a flexible "neon" t-shirt with LED filaments

http://scottbezek.blogspot.com/2026/10/making-flexible-neon-t-shirt-with-leds.html
3•scottbez1•15m ago•3 comments

I bought my own TLD (well not really)

https://solmaz.io/i-bought-my-own-tld-well-not-really
2•hosolmaz•15m ago•0 comments

Show HN: Last Internet Connection

https://reparadoxy.itch.io/last-internet-connection
1•PolishDevelop22•16m ago•0 comments

PlanetScale TIN: fast text search in Postgres

https://planetscale.com/blog/tin-v106
1•thomask1995•17m ago•0 comments

Show HN: Seahaven – Open-source framework for building RL environments

https://github.com/Kiln-AI/Seahaven
2•scosman•17m ago•0 comments

The Science and Engineering of Machine Consciousness

https://keyurramoliya.com/posts/Machine-Consciousness/
1•KeyurRamoliya•17m ago•0 comments

Show HN: Jevman – AI decision models play Pac-Man

https://opper.ai/jevman-benchmark/
4•felix089•18m ago•0 comments

Don't 'meet them where they are' and leave them there

https://www.joannejacobs.com/post/don-t-meet-them-where-they-are-and-leave-them-there
3•speckx•20m ago•0 comments

The Woman Who Wants You to Ditch Your Phone

https://www.nytimes.com/2026/10/07/style/august-lamm-influencer-smartphone-book.html
1•bonefishgrill•20m ago•0 comments

Positive Text Origin Verification

2•Miguel_FierroM•21m ago•3 comments

The Latest Nuisance on Flights Is a Zoom Call at 30k Feet

https://www.wsj.com/lifestyle/travel/the-latest-nuisance-on-flights-is-a-zoom-call-at-30-000-feet...
3•apparent•24m ago•0 comments

Signals and Systems Principles for Data Scientists

https://m.regrok.info/signals-for-data-scientists.html
1•vipin211•24m ago•0 comments

Natura unveils $99 Interface smart ring for AI agents and apps

https://techcrunch.com/2026/10/08/naturas-smart-ring-puts-ai-agents-on-your-finger/
5•utiiiD•24m ago•0 comments

X100 better browser for Instinct, for free

https://docs.anchorbrowser.io/for-agents
4•idan-raman•26m ago•1 comments

Margeux: A Lisp language inspired by Python and Nim, running natively in browser

https://margeux.duckdns.org
3•vegnus•28m ago•0 comments

My friend built this, and it helped me get past the first hiring filter

https://creatucv.ai
3•oriolgfarssac•28m ago•0 comments