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

Comments

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

How long do electric vehicle batteries last?

https://www.npr.org/2026/03/02/nx-s1-5706658/electric-vehicle-battery-lifespan
1•tzs•2m ago•0 comments

A Modular Computer That's Bringing Back Analog

https://www.hackster.io/news/a-modular-computer-that-s-bringing-back-analog-e02f07df7bf6
1•todsacerdoti•5m ago•0 comments

US blindsides states with surprise settlement in Live Nation/Ticketmaster trial

https://arstechnica.com/tech-policy/2026/03/us-blindsides-states-with-surprise-settlement-in-live...
3•voxadam•6m ago•0 comments

FBI is investigating breach that may have hit its wiretapping tools

https://www.theregister.com/2026/03/08/fbi_investigates_wiretap_system_breach/
1•Bender•6m ago•0 comments

Show HN: Git Worktrees Simplified

https://github.com/backnotprop/worktree-aliases/tree/main
1•ramoz•8m ago•0 comments

Kettle, open source tooling for TEE-attested builds

https://github.com/lunal-dev/kettle
3•indirect•9m ago•1 comments

SDL_mixer 3.2.0 (stable) is out

https://github.com/libsdl-org/SDL_mixer/releases/tag/release-3.2.0
1•linkdd•11m ago•0 comments

Making Prompt Injection Harder Against AI Coding Agents

https://medium.com/@cbchhaya/making-prompt-injection-harder-against-ai-coding-agents-f4719c083a5c
1•dpapathanasiou•11m ago•0 comments

Ask HN: General API for accessing bank transactions?

1•aykhm•11m ago•0 comments

What it means to be a 10x engineer

https://medium.com/@orzel.jarek/what-it-means-to-be-a-10x-engineer-0f5c4db543a6
2•orzeljarek•14m ago•0 comments

RPPG-Enabled Contactless Pulse Rate Monitoring Software in CVD Patients

https://www.mdpi.com/2306-5354/13/2/246
1•PaulHoule•14m ago•0 comments

Codex 101 Guide from a Recovering PM

https://www.forwardeployed.com/post/codex-best-practices
1•yummyelephant8•14m ago•1 comments

Paying without Google: New consortium wants to remove custom ROM hurdles

https://www.heise.de/en/news/Paying-without-Google-New-consortium-wants-to-remove-custom-ROM-hurd...
1•therealmarv•14m ago•0 comments

Xygeni/xygeni-action GitHub Action is compromised – poisoned tag is still live

https://www.stepsecurity.io/blog/xygeni-action-compromised-c2-reverse-shell-backdoor-injected-via...
1•varunsharma07•16m ago•0 comments

New AI Note Tool

1•xlisp•16m ago•1 comments

Shipping Grayscale Photos at Small Scale

https://underjord.io/shipping-grayscale-photos-at-small-scale.html
1•zdw•19m ago•0 comments

Head to head: Claude Code (Opus 4.6 / 1M) vs. Cursor (Composer 1.5 / 200k)

https://medium.com/@yoavaa/head-to-head-claude-code-opus-4-6-1m-vs-cursor-composer-1-5-200k-f15c5...
1•yoava•20m ago•0 comments

Managing My Open Source Repos with Autonomous AI Agents

https://massadas.com/posts/managing-opensource-with-ai-agents/
1•G4brym•21m ago•0 comments

Aatel: The Anti-AI Training Ethical License – What It Is and Why It Was Built

https://github.com/aatel-license/aatel-license.github.io
1•aatel-license•21m ago•1 comments

Cinder CSI vs. Ceph RBD CSI in Kubernetes

https://spot.rackspace.com/blogs/cinder-csi-vs-ceph-rbd-csi-in-kubernetes-an-analysis-of-persiste...
1•aleroawani•21m ago•0 comments

Sorca – Voice-first AI therapy companion

https://sorca.life
1•nothanii•22m ago•1 comments

Context plane for AI agents (Rust, S3)

https://aboutphilippe.com/2026/03/04/context-plane/
1•aboutphilippe•23m ago•1 comments

Music Programming Studio

https://folkstack.com/blog/introducing_music_programming_studio.html
1•folkstack•24m ago•0 comments

Ask HN: Value and demand for space-manufactured products?

1•dnlh_lvg•25m ago•0 comments

Anthropic says Trump ban puts federal contractor partnerships 'in jeopardy'

https://fedscoop.com/anthropic-says-trump-ban-puts-federal-contractor-partnerships-jeopardy/
3•petethomas•27m ago•0 comments

Treat Agent Output Like Compiler Output

https://skiplabs.io/blog/codegen_as_compiler
2•friscofoodie•27m ago•0 comments

New HIV cure approach forces hidden virus into tripping immune sensor

https://www.science.org/content/article/new-hiv-cure-approach-forces-hidden-virus-tripping-immune...
2•rbanffy•30m ago•0 comments

LibreOffice learns to speak Markdown in version 26.2

https://www.theregister.com/2026/03/09/markdown_in_libreoffice/
3•rbanffy•31m ago•0 comments

EV charger biz ELECQ zapped by ransomware crooks, customer contact data stolen

https://www.theregister.com/2026/03/09/ransomware_crooks_hit_ev_charger/
1•Bender•31m ago•0 comments

Moody humans should let AI handle bad public feedback first, study finds

https://www.theregister.com/2026/03/09/ai_negative_reviews/
2•Bender•32m ago•0 comments