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•8mo ago

Comments

karmakaze•8mo 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•8mo 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•8mo 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•8mo 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•8mo 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•8mo 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•8mo 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•8mo ago
Hey Mark, I actually found this post via yours so thanks!

Debian 13.3 Released

https://www.debian.org/News/2026/20260110
1•midzer•10s ago•0 comments

The Night New York Saved Itself from Bankruptcy (2015)

https://www.newyorker.com/news/news-desk/the-night-new-york-saved-itself-from-bankruptcy
1•Amorymeltzer•28s ago•0 comments

Show HN: ContextGraph Cloud – Governance infrastructure for AI agents

https://github.com/akz4ol/contextgraph-cloud
1•akz4ol•30s ago•0 comments

Show HN: dbtree – CLI tool to print database schemas as trees, lists, or charts

http://vivekn.dev/dbtree/
1•viveknathani_•34s ago•0 comments

Coding Adventure: Analyzing Audio [video]

https://www.youtube.com/watch?v=08mmKNLQVHU
1•simonebrunozzi•54s ago•0 comments

AI gave us oil and we strapped it to a horse

https://sitebloom.ch/writing/what-does-100x-look-like/
1•nickgreg•1m ago•0 comments

Turbodbc: Python module to access relational databases via ODBC

https://github.com/blue-yonder/turbodbc
1•tosh•2m ago•0 comments

Show HN: Airbnb Search Exporter

https://chromewebstore.google.com/detail/airbnb-search-exporter/nabopfienioeeikdgglhcpdncnjdpmfa
1•qwikhost•4m ago•0 comments

Startup Wants to Bring Cancer Patients Care at Home

https://www.wsj.com/articles/this-startup-wants-to-bring-cancer-patients-care-at-home-440fe7bc
1•brandonb•4m ago•0 comments

Why my NFC passport didn't work at Heathrow's eGates

https://shkspr.mobi/blog/2026/01/why-my-nfc-passport-didnt-work-at-heathrows-egates/
1•edent•6m ago•0 comments

My best tricks from 13 years of losing weight

https://blinry.org/weight-loss/
1•cuechan•6m ago•0 comments

Five Letter Word Finder Tool

https://5letterlexicon.com
1•TheMashaBrand•8m ago•0 comments

ThinkPad X1 Carbon Gen 14: Lenovo's Most Repairable Ultraportable

https://www.pcmag.com/news/lenovo-new-thinkpad-x1-carbon-gen-14-ces-2026
2•teleforce•11m ago•0 comments

Show HN: Porting xv6 to HiFive Unmatched board

https://github.com/eyengin/xv6-riscv-unmatched
2•eyengin•13m ago•0 comments

Linux, the PC program from hell (The Times, 1997)

https://web.archive.org/web/19990829231247/http://www.sunday-times.co.uk/news/pages/sti/97/04/20/...
2•wbmva•13m ago•0 comments

The Dirty Secret of Million-Token Context Windows

https://deadneurons.substack.com/p/the-dirty-secret-of-million-token
1•nr378•16m ago•0 comments

Anthropic cuts off xAI's access to its models for coding

https://sherwood.news/tech/report-anthropic-cuts-off-xais-access-to-its-models-for-coding/
2•CharlesW•17m ago•0 comments

AI almost solved my toddler sleep issues

https://andreabaccega.com/blog/ai-solved-my-toddler-sleep-issues/
1•sMarsIntruder•17m ago•2 comments

A visual roadmap for production observability and debugging

https://nemorize.com/roadmaps/production-observability-from-signals-to-root-cause-2026
1•reverseblade2•21m ago•0 comments

Show HN: HookWatch – Simple webhook monitoring with one-click replay

https://hookwatch-production.up.railway.app
1•hackdat•23m ago•0 comments

UK government exempting itself from cyber law inspires little confidence

https://www.theregister.com/2026/01/10/csr_bill_analysis/
11•DyslexicAtheist•29m ago•0 comments

Kavanaugh Stop

https://en.wikipedia.org/wiki/Kavanaugh_stop
5•amarcheschi•30m ago•0 comments

NASA announces unprecedented return of sick ISS astronaut and crew

https://www.livescience.com/space/space-exploration/nasa-cancels-spacewalk-and-considers-early-cr...
7•bookofjoe•36m ago•1 comments

A vision-based PDF parser to validate contracts in Google Drive

1•scannyai•38m ago•0 comments

Ideas validated and ranked, so you know what to build

https://idealyt.com
1•ainthusiast•47m ago•0 comments

Charts2Go – Professional-looking charts and QR codes with ease and for free

https://charts2go.top
1•wstaeblein•47m ago•1 comments

Using AI, Mathematicians Find Hidden Glitches in Fluid Equations

https://www.quantamagazine.org/using-ai-mathematicians-find-hidden-glitches-in-fluid-equations-20...
2•sonabinu•50m ago•0 comments

Dialogue Between a Developer and a Kid

https://riggraz.dev/dialogue-developer.html
2•birdculture•51m ago•0 comments

Copilot could soon live inside Windows 11's File Explorer

https://www.windowslatest.com/2026/01/09/copilot-could-soon-live-inside-windows-11s-file-explorer...
1•AlexeyBrin•52m ago•1 comments

Ask HN: What happened to self-hosted models?

2•curiousaboutml•1h ago•6 comments