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!

Hughpyle/ttyemu: Teletype model 33 emulator with sound

https://github.com/hughpyle/ttyemu
1•rbanffy•3m ago•0 comments

I built Fluidus: an open-source, end-to-end encrypted messenger

https://fluidus.pages.dev
1•virensahti•6m ago•1 comments

How to Overcharge Customers Without Them Complaining (Or Noticing)

https://builtformars.com/case-studies/tickets
1•trainstationguy•6m ago•0 comments

Show HN: Hype or slop – hourly AI news

https://hypeorslop.com/
1•rogo032•11m ago•0 comments

The Superintelligent Will [pdf]

https://nickbostrom.com/superintelligentwill.pdf
2•geox•11m ago•0 comments

Jellyfish alternatives and pricing in 2026: what the AI spend numbers measure

https://quesma.com/blog/jellyfish-alternatives/
1•jakozaur•15m ago•0 comments

Drawing a week of audio in under 2 ms

https://halt.software/drawing-a-week-of-audio/
1•halt76•16m ago•0 comments

Democracy in America

https://patrickcollison.substack.com/p/democracy-in-america
1•bkudria•16m ago•0 comments

Malicious Internet Design [video]

https://www.youtube.com/watch?v=QtuFPTpiIxA
1•vincvinc•17m ago•0 comments

Show HN: I was getting rusty in Python so made a typing game

https://gymtype.dev/
2•elisharobinson•17m ago•1 comments

Got PQC?

https://www.gotpqc.com
6•owenthejumper•18m ago•0 comments

Automatic dementia scoring by applying deep learning on clock-drawing tests

https://www.nature.com/articles/s41598-020-74710-9/figures/1
1•chistev•19m ago•0 comments

Project Notes 6.5.4 is here

1•kestermckinney•19m ago•0 comments

Wind speed map Sarov Russia

https://zoom.earth/places/russia/sarov/#map=wind-speed/model=icon/date=2026-12-04,09:00,+3
1•totetsu•21m ago•1 comments

Hidden until found

https://www.htmhell.dev/adventcalendar/2026/4/
1•soheilpro•22m ago•0 comments

Show HN: 1-second WASM phone benchmark (2k runs: Apple 1-core, Android multi

https://cardmark.net/
1•daniloor•22m ago•0 comments

Show HN: Im Not the CEO of Uplumo.com

https://uplumo.com/
1•toufiqqureshi•24m ago•0 comments

When can regulated systems move to post-quantum cryptography?

https://unmitigatedrisk.com/2026/12/when-can-regulated-systems-move-to-post-quantum-cryptography/
1•hasheddan•24m ago•0 comments

Keeping the Best and the Brightest Out of Bullshit Jobs

https://www.newyorker.com/culture/persons-of-interest/keeping-the-best-and-the-brightest-out-of-b...
2•Anon84•24m ago•0 comments

What does Windows "POSIX-style delete" mean, and how do I get it?

https://devblogs.microsoft.com/oldnewthing/20261203-00/?p=112918/
1•waximabbax•24m ago•0 comments

Nintendo and the Minnesota State Lottery [video]

https://www.youtube.com/watch?v=T7otq1M6b-s
1•skibz•29m ago•0 comments

Show HN: FileLens Check – see what a photo or file hides, nothing is uploaded

https://andybuki.github.io/filelens-check/
1•andybuki•31m ago•0 comments

Tabnet: An intranet you join by opening a tab

https://fzakaria.com/2026/11/30/tabnet-an-intranet-you-join-by-opening-a-tab
1•birdculture•31m ago•0 comments

The Riemann Hypothesis and Cryptography

https://keymaterial.net/2026/12/03/the-riemann-hypothesis-and-cryptography/
2•hasheddan•32m ago•0 comments

Meta Considers Phone-Like Device in Hardware 'Constellation' Built Around Muse

https://www.bloomberg.com/news/articles/2026-12-03/meta-considers-phone-like-device-in-hardware-c...
2•goatley•32m ago•0 comments

Mean World Syndrome

https://en.wikipedia.org/wiki/Mean_world_syndrome
1•rzk•35m ago•0 comments

Show HN: ExperimentEML – 256-bit interval and Lean verifier and math-to-hardware

https://github.com/kartar-sachmeet/ExperimentEML
2•sachmeet•36m ago•0 comments

"Rewrite this as a new ordinance": Inside ChatGPT transcripts of a city manager

https://www.transformernews.ai/p/inside-chatgpt-transcripts-city-manager-kingsland-georgia-ai-wri...
1•DeepLogin•36m ago•0 comments

Arkivism – The Visual Library of Alexandria

https://arkivism.com/
1•the-mitr•37m ago•0 comments

Rumors Will Metastasize

https://soatok.blog/2026/12/02/rumors-will-metastasize/
1•frostbyte64•37m ago•0 comments