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!

Meraki (μεράκι): Infusing Purpose and Passion into Every Moment

https://statecashmere.com/blogs/stories/meraki-infusing-purpose-and-passion-into-every-moment
1•andsoitis•1m ago•0 comments

Scratch a simple data model, find a complex one

https://codeblog.jonskeet.uk/2026/08/14/scratch-a-simple-data-model-find-a-complex-one/
1•ingve•1m ago•0 comments

Show HN: Am-1 Arpeggio Machine – A Love Letter to Berlin School Music

https://crux.garden/zacos/am-1
1•willstepp•2m ago•0 comments

30× faster binary multivector ColBERT late interaction in Vespa

https://oskrim.github.io/engineering/2026/08/13/chunked-hamming-maxsim.html
1•oskrim•6m ago•0 comments

Show HN: Genosyn – Automate running of companies with AI

https://genosyn.com
1•ndhandala•6m ago•0 comments

Why AI-generated vulnerability patches still require expert human review

https://1password.com/blog/why-ai-generated-patches-still-require-human-review
1•wrxd•7m ago•0 comments

Everyone talks about AI agents. This is what one looks from the inside

https://pssah4.github.io/vault-operator/guides/capabilities
1•pssah4•8m ago•0 comments

Demoscene Report on the AI compo of Assembly 2026 [video]

https://www.youtube.com/watch?v=Ob0xuGdbhPA
2•hugodan•10m ago•0 comments

For the love of god stop using CPU limits in Kubernetes

https://github.com/inevolin/k8s-cpu-limits-analyzed
8•iljanevo•10m ago•0 comments

Explaining FoundationDB's Architecture Through Compartmentalization

https://pierrezemb.fr/posts/foundationdb-architecture-through-compartmentalization/
1•g0xA52A2A•12m ago•0 comments

In a first, US will allow some private firms to carry out cyberattacks

https://techcrunch.com/2026/08/13/in-a-first-us-will-allow-some-private-firms-to-carry-out-cybera...
1•jnord•14m ago•0 comments

Ntfy – open-source Push to Mobile

https://ntfy.sh/
1•Fake4d•16m ago•0 comments

Messy

https://www.observed.life/messy
1•brslv•17m ago•0 comments

You can now book two humanoids for our cleaning service in SF

https://twitter.com/alexkoch_ai/status/2087947168799977731
1•doener•18m ago•0 comments

Tinysub: Simple web player for subsonic compatible music servers

https://tangled.org/devins.page/tinysub
1•nerdypepper•20m ago•0 comments

Show HN: DialectGuessr ─ GeoGuessr, but for Accents

https://www.dialectguessr.com
1•lforster•22m ago•0 comments

Paste any recipe link and get just the recipe – no story

https://cutrecipe.com
1•susanvilleula1•23m ago•0 comments

Agent-kit – a size-based mandatory review chain for Claude Code

https://github.com/horilla98/agent-kit
1•danielhorilla•23m ago•0 comments

Not-a-Linux distro review: SerenityOS is a Unix-y love letter to the '90s (2021)

https://arstechnica.com/gadgets/2021/08/not-a-linux-distro-review-serenityos-is-a-unix-y-love-let...
1•doener•25m ago•0 comments

NATO Scrambles Eurofighters, F-16s After Drone Enters Latvian Airspace

https://www.newsweek.com/nato-scrambles-eurofighters-f-16s-after-drone-enters-latvian-airspace-12...
3•Bluestein•25m ago•0 comments

Quantum Annealing, Or, Do Weird Stuff (2013)

https://robertheaton.com/2013/02/11/quantum-annealing/
1•tosh•28m ago•0 comments

The New Berlin Wall

https://planetocracy.org/p/the-new-berlin-wall
2•pr337h4m•29m ago•1 comments

StoryScope: Investigating Idiosyncrasies in AI Fiction

https://arxiv.org/abs/2604.03136
1•dgellow•30m ago•0 comments

Quantum Annealing

https://en.wikipedia.org/wiki/Quantum_annealing
1•tosh•30m ago•0 comments

Evaluating Your Agentic Harnesses

https://data4sci.substack.com/p/evaluating-your-agentic-harnesses
2•Anon84•30m ago•0 comments

Show HN: Rank and Run – No free version of this card game existed, so I made one

https://www.rankandrun.app/
1•xthreadmaker•30m ago•0 comments

StarCraft: Brood War now runs natively on a 68k Amiga – first alpha release

https://www.reddit.com/r/amiga/comments/1vnr1vv/starcraft_brood_war_now_runs_natively_on_a_68k/
1•doener•31m ago•0 comments

Beyond the Userspace Call Stack: Subsystem Context for Detection Engineering

https://fibratus.io/blog/kernel-call-stack-subsystem-context-detection-engineering
1•archrabbit•35m ago•0 comments

Unfit to Boot: Breaking U-Boot's Fit Signature Verification

https://www.binarly.io/blog/unfit-to-boot-breaking-u-boots-fit-signature-verification
1•ankitg12•37m ago•0 comments

Fish are facing a summer of death in UK's poisoned rivers

https://inews.co.uk/news/feargal-sharkey-fish-facing-summer-death-uks-rivers-4700217
1•robtherobber•38m ago•0 comments