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!

JDownloader Got Hacked

https://jdownloader.org/incident_8.5.2026.html?v=20260508277000
1•campuscodi•21s ago•0 comments

Profiling.sampling – Statistical Profiler

https://docs.python.org/3/library/profiling.sampling.html
1•djoldman•46s ago•0 comments

Codebadger – MCP server for static code analysis with Joern

https://github.com/lekssays/codebadger
1•codebadger•3m ago•0 comments

Show HN: Generate a lot of ad creatives for your SaaS in one click

https://zenduxai.com
1•total_plus•4m ago•0 comments

Data as a Product Is a Promise

https://yusufaytas.com/data-as-a-product-a-new-frontier
3•yapqueen•5m ago•0 comments

Boards of Canada – Introit / Prophecy at 1420 MHz

https://www.youtube.com/watch?v=74NluS3jzTo
1•nntwozz•8m ago•0 comments

Doctors Just Staged the Quietest Coup in American History

https://thegrimhistorian.substack.com/p/36-doctors-just-staged-the-quietest
5•s4i•9m ago•0 comments

Will AI kill the research paper?

https://marginalrevolution.com/marginalrevolution/2026/05/will-ai-kill-the-research-paper.html
2•smitty1e•10m ago•0 comments

Multi-camera scenes and Smart transitions in our open-source 3D web platform

https://vectreal.com/news-room/camera-presets-and-transitions
1•Vectreal-Admin•10m ago•0 comments

Tech is turning increasingly to religion in a quest to create ethical AI

https://apnews.com/article/ai-artificial-intelligence-ethics-religion-roundtable-053a44133c64703f...
2•cainxinth•10m ago•0 comments

Amazon's data center in Chile is moving forward

https://www.reuters.com/sustainability/land-use-biodiversity/amazons-chile-data-center-moves-ahea...
1•01-_-•11m ago•0 comments

Robot Operating System

https://en.wikipedia.org/wiki/Robot_Operating_System
1•tosh•15m ago•0 comments

There's a Long-Shot Proposal to Protect California Workers from AI

https://www.wired.com/story/tom-steyer-proposes-jobs-guarantee-to-protect-california-workers-from...
2•joozio•15m ago•0 comments

Upgrade your Symfony 1.x Website To PHP 8.x Compatibility – PHP 8.5.6 Tested

https://github.com/se7enxweb/symfonyone
2•7x•21m ago•1 comments

Technical Dimensions of Programming Systems

https://tomasp.net/techdims/
2•tosh•25m ago•0 comments

NV-CA state line casinos and truck stop to close July 4

https://www.vvdailypress.com/story/news/local/2026/05/06/primm-casinos-closing-along-stateline-hu...
1•burnt-resistor•26m ago•0 comments

Steering Zig Fmt

https://matklad.github.io/2026/05/08/steering-zig-fmt.html
1•birdculture•27m ago•0 comments

If you're a programmer and you feel depressed by AI, don't be!

https://unixdigest.com/articles/if-youre-a-programmer-and-you-feel-depressed-by-ai-dont-be.html
2•jruohonen•27m ago•0 comments

Israel's AI targeting system: data from a phone become a death sentence

https://www.latimes.com/world-nation/story/2026-05-04/inside-israels-ai-targeting-system-how-data...
2•YeGoblynQueenne•28m ago•0 comments

AI Startup's Software Watches Employees as They Work

https://www.forbes.com/sites/rashishrivastava/2026/05/10/this-ai-startups-software-watches-employ...
3•geox•28m ago•0 comments

Counterfeit Power Cables – A Fire Waiting to Happen

https://goughlui.com/2026/05/09/notes-counterfeit-power-cables-a-fire-waiting-to-happen/
1•giuliomagnifico•37m ago•0 comments

Cangjie, Huawei's new language for HarmonyOS NEXT

https://cangjie-lang.cn/en/docs?url=%2F0.53.13%2Fuser_manual%2Fsource_en%2Ffirst_understanding%2F...
1•pjmlp•43m ago•0 comments

Replacing a 3 GB SQLite db with a 10 MB FST (finite state transducer) binary

https://til.andrew-quinn.me/posts/replacing-a-3-gb-sqlite-database-with-a-7-mb-fst-finite-state-t...
5•hiAndrewQuinn•46m ago•0 comments

Facebook Reveals Its Smart Glasses' Nerve-Tracking Wristband Tech (2021)

https://www.slashgear.com/facebook-reveals-its-smart-glasses-nerve-tracking-wristband-tech-18664390/
1•Eridanus2•47m ago•0 comments

Show HN: Make your codebase agent ready

https://github.com/jaksa76/agentize
3•jaksa•51m ago•0 comments

Notetux++ – a native GTK3 Linux port of Notepad++, written in C11

https://github.com/notetux-plus-plus/notetux-plus-plus
3•andreacoi•53m ago•0 comments

Show HN: Akmon, a Rust AI coding agent for regulated engineering

https://github.com/radotsvetkov/akmon
3•radotsvetkov•54m ago•0 comments

Agent Readiness

https://jaksa.me/blog/2026-05-10-agent-readiness
1•jaksa•54m ago•0 comments

FB >> HTTPS://Www.facebook.com/EndoPeakGet/

https://www.facebook.com/EndoPeakGet
1•jarrykyll•57m ago•0 comments

"openai.com" was once the personal homepage of a guy named glenn

https://bsky.app/profile/annierau.bsky.social/post/3mkzrvrn44c2h
8•ndr42•58m ago•0 comments