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

Comments

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

Nomor Call Center Agoda Reschedule 0815.4054.505

1•paro2good•39s ago•0 comments

Sora Watermark Remover – Pixel-Accurate Cleanup for Sora / Sora 2 Videos

https://www.unsorawatermark.com/?i=d1d5k
1•lu794377•1m ago•1 comments

WhatsApp Resmi Agoda 0815.4054.505

1•paro2good•1m ago•0 comments

Coffee Sniffers

https://en.wikipedia.org/wiki/Coffee_sniffers
1•nojs•1m ago•0 comments

Self-hosting DNS for no fun, but a little profit

https://linderud.dev/blog/self-hosting-dns-for-no-fun-but-a-little-profit/
1•ingve•3m ago•0 comments

Paperlike Color 25.3" [video]

https://www.youtube.com/watch?v=J4L4XDXwCKU
1•ezconnect•3m ago•0 comments

Call Center Agoda Jakarta

1•khubaibashraf•4m ago•0 comments

Claude Goes to Therapy

https://www.wired.com/story/ai-mother-eliza-claude-therapy/
1•luckyturkey•5m ago•0 comments

Layanan Agoda Indonesia

1•khubaibashraf•6m ago•0 comments

Agoda Reschedule 24 Jam

1•khubaibashraf•9m ago•0 comments

Gemini 3: Interact with a virtual OS by simply drawing [video]

https://www.youtube.com/watch?v=nrfpu7mor6g
1•SweetSoftPillow•13m ago•0 comments

Nvidia, Microsoft deal takes 'circular' financing to new level

https://www.thestreet.com/investing/stocks/nvidia-microsoft-deal-takes-circular-financing-to-enti...
3•zerosizedweasle•13m ago•0 comments

Layanan Agoda Reschedule

1•zemakasi•15m ago•0 comments

NanoBoyAdvance: A cycle-accurate Nintendo Game Boy Advance emulator

https://github.com/nba-emu/NanoBoyAdvance
1•lnyan•16m ago•0 comments

AV2 Video Codec Architecture

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

Nomor WhatsApp Agoda

1•zemakasi•17m ago•0 comments

Layanan Agoda

1•zemakasi•17m ago•0 comments

The Myth of Reflected Power

https://www.iz2uuf.net/wp/index.php/2017/07/29/the-myth-of-reflected-power/
1•pera•17m ago•0 comments

Show HN: Dream Decoder AI – Jungian dream analysis with 3D visualization

1•brandonmillsai•19m ago•0 comments

Sunrise Robotics

https://sunriserobotics.co/
1•otobrglez•25m ago•0 comments

Saab invests in space technology company Pythom

https://www.saab.com/newsroom/press-releases/2025/saab-invests-in-space-technology-company-pythom
1•madspindel•27m ago•0 comments

When high availability brings downtime

https://medium.com/learnings-from-the-paas/when-high-availability-brings-downtime-7a6261b0ef1c
1•todsacerdoti•28m ago•0 comments

Tell HN: Cursor exposes side projects to your employer

5•throwawaybbbbbb•28m ago•0 comments

Show HN: I built a simple website directory and it just passed 400 submissions

https://www.showmysites.com/
1•toutoulliou•28m ago•0 comments

IC3PEAK – Dead but Pretty [video]

https://www.youtube.com/watch?v=qCljI3cIObU
1•consumer451•30m ago•1 comments

A native, static binary with SQLite support in C#

https://pileofhacks.dev/post/a-native-static-binary-with-sqlite-support-in-c/
2•colonCapitalDee•34m ago•0 comments

Asymptotically optimal approximate Hadamard matrices

https://arxiv.org/abs/2511.14653
2•mathfan•43m ago•0 comments

Gov. Spencer Cox announces major nuclear energy hub in Utah

https://www.deseret.com/utah/2025/11/17/gov-cox-announces-site-for-utah-nuclear-power-plant/
1•mpweiher•44m ago•0 comments

The Convergence

https://rodgercuddington.substack.com/p/the-convergence
2•freespirt•51m ago•0 comments

Ask HN: What was it like for you to be sunned?

1•suckow•52m ago•0 comments