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!

A multi-tool agent harness: graph routing, middleware, and state budgets

https://github.com/Bella3202019/promptloop/blob/main/docs/The_Harness_Behind_Deep_Agent.md
1•velapod•1m ago•0 comments

Valve Takes Crazy Pills and Jacks Up Steam Deck Pricing

https://boilingsteam.com/valve-takes-crazy-pills-and-jacks-up-steam-deck-pricing/
1•ekianjo•1m ago•0 comments

Intel Hyperscan: How We Match Regular Expressions

https://www.intel.com/content/www/us/en/collections/libraries/hyperscan/regular-expression-match....
1•tosh•2m ago•0 comments

Ask HN: Wishlist for an Immich-macOS-App?

1•markusMB•3m ago•0 comments

The Mississippi Miracle

https://en.wikipedia.org/wiki/Mississippi_Miracle
1•panny•3m ago•0 comments

I Tried to Sell My House with a Chatbot

https://www.nytimes.com/2026/05/28/technology/sell-house-with-ai-no-realtor.html
1•burkaman•4m ago•1 comments

Only 17% of all 64-bit Integers are products of two 32-bit integers

https://lemire.me/blog/2026/05/22/only-17-of-all-64-bit-integers-are-products-of-two-32-bit-integ...
2•sebg•7m ago•0 comments

Show HN: Free open source coding models in Slack

https://www.runcord.com/
2•ramonga•8m ago•0 comments

EaglePress – v2.0 milestone, Blog with Python3 and PostgreSQL

https://eaglepress.org/
1•eagle10ne•8m ago•0 comments

I built a Claude Code hook stack that catches AI patterns before they ship

https://founder-voice-kit.com
1•Assafkip•8m ago•0 comments

Burn the Ships

https://offsquare.substack.com/p/burn-the-ships
1•fkodom•10m ago•0 comments

Using risk and traffic modeling to predict hazard efficacy on golf courses

https://golfcoursewiki.substack.com/p/measure-2000-times-cut-once
1•scoofy•11m ago•0 comments

Data Parallel C++

https://library.oapen.org/handle/20.500.12657/76704
2•tosh•12m ago•0 comments

The Pope Grasps the Limits of AI

https://www.theatlantic.com/ideas/2026/05/pope-leo-ai-catholic-church/687298/
1•Michelangelo11•15m ago•0 comments

AWS services to own your vibe-coded app's deployment

https://norahsakal.com/blog/vibe-coded-app-now-what/
1•norsak•15m ago•0 comments

How do otters smell underwater?

https://iere.org/how-do-otters-smell-underwater/
1•thunderbong•17m ago•0 comments

Websites Are Not Going to Die

https://meiert.com/blog/websites-are-not-going-to-die/
1•speckx•17m ago•0 comments

Both Stores Said Yes

https://newsletter.masilotti.com/p/ruby-native-works
1•joemasilotti•17m ago•0 comments

Twelve Ways to Be Wrong About AI-Assisted Coding

https://third-bit.com/2026/05/20/twelve-ways-to-be-wrong/
1•birdculture•19m ago•0 comments

Phoenix Built an Empire of Cubicle Jobs. AI Is Coming to Tear It Down

https://www.wsj.com/economy/phoenix-built-an-empire-of-cubicle-jobs-ai-is-coming-to-tear-it-down-...
1•impish9208•20m ago•1 comments

Carnival Cruise confirms data breach affecting nearly 6M people

https://www.bleepingcomputer.com/news/security/carnival-cruise-confirms-data-breach-affecting-nea...
3•Brajeshwar•22m ago•0 comments

New Oura Ring 5 has smaller design and hypertension detection

https://9to5mac.com/2026/05/28/oura-ring-5-launched-features-price/
2•brandonb•22m ago•0 comments

Turn Hacker News into a personalized brief

https://briefin.com/hackernews/
2•DSemba•25m ago•0 comments

Zig creator seeks 'uncompromising perfection' before blessing 1.0

https://www.theregister.com/software/2026/05/28/zig-creator-seeks-uncompromising-perfection-befor...
3•jjgreen•26m ago•1 comments

DIY F1 Racing Steering Wheel Controller Using a Raspberry Pi

https://www.instructables.com/DIY-F1-Racing-Steering-Wheel-Controller-Using-a-Ra/
1•newsoftheday•27m ago•0 comments

From Spec-Driven Development to Compilable Specs

https://pipelex.com/blog/from-spec-driven-development-to-compilable-specs
4•RobinHonnart•29m ago•1 comments

A 176-Package NPM Campaign Built to Beat Your Internal Dependencies

https://www.sonatype.com/blog/inside-a-176-package-npm-campaign-built-to-beat-your-internal-depen...
4•speckx•31m ago•0 comments

VS Code extension that generates SOX/FINRA/PCI-DSS-aware code documentation

https://marketplace.visualstudio.com/items?itemName=compliance-documenter.compliance-documenter-h...
1•compliancedoc•33m ago•0 comments

The Godmother of Silicon Valley

https://computerhistory.org/events/godmother-of-silicon-valley/
1•rbanffy•33m ago•0 comments

A two-qubit system that generates true randomness for secure data encryption

https://www.scientificamerican.com/article/a-quantum-computing-systems-perfect-randomness-could-k...
1•chc2889•33m ago•0 comments