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•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!

1•zfoong•22s ago

Yahoo reduces email storage limits for free and paid accounts

https://help.yahoo.com/kb/SLN37064.html
1•asdefghyk•57s ago•1 comments

Show HN: Name2Tree – Turn any name into a deterministic tree

https://tree.bairui.dev/
1•subairui•3m ago•0 comments

Pass the Cherries: Review of Twilight of the Dons

https://literaryreview.co.uk/pass-the-cherries
1•Petiver•3m ago•0 comments

Company Manufactures Stamped-Steel Classic Replica Bodies for Mustang, FJ40

https://www.youtube.com/watch?v=cBBZrjwqWZc
1•benfrancom•4m ago•1 comments

The Next Era of Knowledge Work [pdf]

https://cdn.openai.com/pdf/the-next-era-of-knowledge-work.pdf
1•iooi•4m ago•0 comments

AI Coding Tips for 2026

https://raheelyawar.medium.com/ai-coding-tips-may-2026-43a12e68067a
1•dbgrman•5m ago•1 comments

Create Godot Games on Android

https://godotengine.org/article/gabe-stable-release/
1•LorenDB•7m ago•0 comments

Real-time map of when the world is horny

https://masturbate.now/pulse
1•untitled-now•8m ago•0 comments

Against the Survival of the Prettiest (2022)

https://worksinprogress.co/issue/against-the-survival-of-the-prettiest/
1•tmp10423288442•9m ago•0 comments

Android Security Bulletin June 2026

https://source.android.com/docs/security/bulletin/2026/2026-06-01
1•panarky•9m ago•1 comments

Feather Game Engine

https://github.com/mariojgt/featherEngine
1•mariojgt•9m ago•0 comments

Microsoft says new quantum chip 1k times more reliable than predecessor

https://www.bbc.com/news/articles/cj4p7gyvp52o
1•neversaydie•12m ago•0 comments

ReachIQ – paste a LinkedIn URL, get a personalised cold email draft in 10s

https://reachiq.co
1•cjroc•15m ago•0 comments

Jeffrey Epstein, Chief Financial Officer, Oracle USA, Inc (2010)

https://search.sunbiz.org/Inquiry/CorporationSearch/ConvertTiffToPDF?storagePath=COR%5C2010%5C010...
6•bflesch•16m ago•2 comments

End of Civilization News

https://www.math.columbia.edu/~woit/wordpress/?p=15705
2•jjgreen•17m ago•0 comments

Show HN: Dynamically Generated Fluid UI's

https://balladic.com/demo/narrative
1•bhark•20m ago•0 comments

Hiring Thread for AML/KYC/Trust and Safety Roles – June 2026

2•MichaelZuZu•23m ago•1 comments

Introduction to Paigham (Message) Nats UI

https://github.com/LetsConvert-IO/paigham-nats
2•urashidmalik•25m ago•0 comments

Cliffwater's flagship private credit fund hit with 17% redemption requests

https://www.ft.com/content/dfdfee64-d3fb-487a-9019-1926387b0ef1
2•JumpCrisscross•25m ago•0 comments

Advertisements as Articles in the Register MS

https://techrights.org/n/2026/06/02/Advertisements_as_Articles_in_The_Register_MS.shtml
2•amcclure•27m ago•0 comments

Coinbase Founder's Longevity Startup Triples in Value

https://www.wsj.com/business/newlimit-startup-brian-armstrong-value-82ab9830
2•wslh•28m ago•0 comments

Majorana 2 [video]

https://www.youtube.com/watch?v=1bN4O5_meB4
2•ketchup32613•29m ago•0 comments

Flag Mates, A two-player flag guessing game I built as a wedding gift

https://flagmates4.life/
2•risquer•30m ago•1 comments

Apple's MacBook Neo is winning over a new generation of buyers

https://techcrunch.com/2026/06/02/apples-macbook-neo-is-winning-over-a-new-generation-of-buyers/
4•dhfbshfbu4u3•31m ago•0 comments

FeynRL- Don't let systems swallow the algorithm

https://github.com/FeynRL-project/FeynRL
4•rasoolfakoor•33m ago•0 comments

Ask HN: Flag/gray out comments complaining about AI/LLM use in posts/comments?

3•bookofjoe•33m ago•2 comments

Skillhound: Give your AI access to every public SKILL.md

https://www.skillhound.ai/
4•mfkhalil•37m ago•0 comments

MSTR sells Bitcoin for 1st time since 2022 as quantum risks emerge

https://eciks.org/6891-53435-mstr-stock-drops-as-strategy-sells-bitcoin-for-first-time-since-2022
2•mgh2•38m ago•0 comments

Tiny GPT in Go. Optimised for Understanding. Trained on Jules Verne Books

https://github.com/zakirullin/gpt-go
4•idontlikellm•43m ago•0 comments