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!

What Are Authors For?

https://www.bostonreview.net/articles/what-are-authors-for/
1•ColinWright•2m ago•0 comments

AI and Sexuality: ORPO Alignment

https://hartmans.dreamwidth.org/102303.html
1•edward•3m ago•0 comments

AI Cryptography Breakthroughs Spark Fears of a Bitcoin Doomsday

https://www.wsj.com/cio-journal/ai-cryptography-breakthroughs-spark-fears-of-a-bitcoin-doomsday-e...
1•thiagomonteiro•4m ago•0 comments

Railway Has Gone Mobile

https://railway.com/mobile
1•janandonly•5m ago•0 comments

Hyakunin Isshu

https://100poets.com/index/index-by-number/
1•justsomehuman•6m ago•1 comments

Static Recompilation of Age of Empires II PS2 Running Natively on Sega Dreamcast

https://github.com/javierbule/aoe2-dc-recomp
1•JavierBule•8m ago•0 comments

Apocalypse would be beneficial (for the survivors)

https://pawelmiech.com/books/reflection/2026/02/14/station-eleven-apocalypse-beneficial.html
1•ffjffsfr•9m ago•0 comments

Show HN: Cactorial, a Mac app that lets your AI agent make updatable tutorials

https://cactorial.com/
1•mattront•11m ago•0 comments

US Rep. Massie: AI safety is "about trying to maintain power" for AI labs

https://twitter.com/RepThomasMassie/status/2128264430538621403
1•anon373839•11m ago•0 comments

A free daily digest of Linux and local-AI news, with a public page and RSS

https://linux-doctor.com/latest
1•linux-doctorcom•11m ago•0 comments

Handling dates and times in SQL queries with PostgreSQL

https://www.mon-code.net/post/186/handling-dates-and-times-in-sql-queries-with-postgresql
1•metfan•12m ago•0 comments

A Review of 'Ten Arguments for Deleting Your Social Media Accounts Right Now'

https://riddle.press/jaron-lanier-saw-it-all-coming/
1•Bluestein•13m ago•0 comments

Joint statement from large companies on transition to post-quantum cryptography

https://twitter.com/Cloudflare/status/2128331729010115041
1•chr15m•13m ago•0 comments

Carlo Gasbarri: The Role of Mathematicians in Mathematics

https://arxiv.org/abs/2611.29087
1•internet_points•13m ago•0 comments

Firecrawl Local

https://github.com/firecrawl/firecrawl/tree/main/apps/local
1•frozenseven•14m ago•0 comments

Free Launch Directory Badge Slider

https://emailfa.st/tools
1•tombakerbuilds•17m ago•1 comments

Why are there so many plants?

https://worldsensorium.com/why-are-there-so-many-plants-new-research-reveals-two-key-phases-in-ea...
2•dnetesn•18m ago•0 comments

Online store security holes let hackers buy at cut price (Feb 2000)

https://www.theregister.com/on-prem/2000/02/03/online-store-security-holes-let-hackers-buy-at-cut...
1•colinmegill•18m ago•0 comments

Build post-quantum-secure VPNs with WireGuard (Rosenpass)

https://rosenpass.eu/
1•Tepix•18m ago•0 comments

Show HN: Omasheet – A Spreadsheet with Exact Numerics

1•librasteve•19m ago•0 comments

AI Macroeconomics

https://www.grumpy-economist.com/p/ai-macroeconomics
1•weltview•19m ago•0 comments

Four dormant Bitcoin wallets move 200 BTC after nearly 17 years

https://cryptobriefing.com/four-dormant-bitcoin-wallets-move-200-btc/
1•frays•19m ago•0 comments

The River in the Ocean

https://blue-continuum.com/the-river-in-the-ocean
1•dnetesn•20m ago•0 comments

Chemical bonds essential to life formed abiotically in ancient celestial bodies

https://www.nature.com/articles/d41586-026-03611-0
1•Brajeshwar•21m ago•0 comments

Hardened Firefox vs. LibreWolf vs. Mullvad Browser: Fingerprinting Strategies

https://vertexfrontier.com/hardened-firefox-vs-librewolf-vs-mullvad/
1•ahmed2208•21m ago•0 comments

Show HN: Hemmingway Cloud – up to 1,500 tok/s per user for Inkling 2 Mini

https://cloud.hemmingway.io/
1•Lukack•22m ago•0 comments

ATProto Ethos

https://atproto.com/articles/atproto-ethos
1•retroviriatus•23m ago•0 comments

Building Subscription Billing with Chargebee and Razorpay (With Code Samples)

https://blog.presencewave.com/post/how-we-built-subscription-billing-with-chargebee-and-razorpay-...
1•sushrutb•35m ago•1 comments

OpenAI Faces Human Rights Complaint over Climate Emissions

https://www.bloomberg.com/news/articles/2026-12-03/openai-faces-human-rights-complaint-over-clima...
2•maxatleitmotiv•40m ago•0 comments

AI changes the way open-source projects operate due to security and high volumes

https://www.cnx-software.com/2026/12/02/ai-changes-the-way-open-source-projects-operate-due-to-se...
1•giuliomagnifico•40m ago•0 comments