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!

Rust-Djinn: The Fastest (and Safest) Gzip Decompressor Is 300 Lines of Spec

https://henniger.dev/post/djinn/
1•sihe•1m ago•0 comments

Fewer then 5 innovations could return 1920s era growth

https://codyfinke.substack.com/p/fewer-then-5-innovations-could-return
1•paulpauper•2m ago•0 comments

Inconsistencies in MCP support across LLMs

https://www.polytomic.com/blog-posts/the-mcp-result-token-trap
2•gms•3m ago•0 comments

Reasons the AI-Apocalypse May Never Arrive

https://mon0.substack.com/p/7-reasons-the-ai-apocalypse-may-never
1•paulpauper•4m ago•0 comments

Show HN: OWASP Finbot Defended with Tenuo

https://github.com/tenuo-ai/finbot-ctf
1•daniel_tenuo•4m ago•0 comments

Amsterdam police confisquates server left-wing ISP A/I at American request

https://www.nrc.nl/nieuws/2026/10/14/politie-amsterdam-neemt-op-amerikaans-verzoek-server-in-besl...
2•jeroenhd•6m ago•0 comments

German police seize humanoid robot that alleged groped teen girl

https://www.cbsnews.com/news/germany-robot-teen-girl-sexual-harassment-groping-cologne/
1•fortran77•7m ago•0 comments

OwnTracks – Your Location Companion

https://owntracks.org/
1•aragonite•7m ago•0 comments

Reinventing the Pencil Sharpener [video]

https://www.youtube.com/watch?v=0Gi5Z51KdUE
1•austinallegro•7m ago•0 comments

Ask HN: Any way to remove ads in Apple apps?

3•mark_l_watson•8m ago•0 comments

Pastewise: A smarter clipboard manager that predicts what you'll paste next

https://apps.apple.com/us/app/pastewise-smart-clipboard/id6762627882?mt=12
1•jimmy_lee•9m ago•0 comments

Compiler bootstrapping depends on more than you might think

https://utcc.utoronto.ca/~cks/space/blog/programming/CompilerBootstrappingVsOSChanges
1•gavinhoward•9m ago•0 comments

Palantir CTO: researchers are taking up smoking as they expect AI to cure cancer

https://www.businessinsider.com/ai-researchers-smoking-ai-cure-cancer-palantir-cto-2026-10
1•gregsadetsky•9m ago•1 comments

Artificial Analysis Decision Index v1.0

https://artificialanalysis.ai/articles/artificial-analysis-decision-index
1•emschwartz•9m ago•0 comments

Hyperdrive: How we solved a rare Hyperdrive MySQL caching bug

https://blog.cloudflare.com/hyperdrive-mysql/
1•hn3ufz62f7•11m ago•0 comments

Tagg, a new browser interface with an AI that takes action for you

https://tagg.now/
1•Kam_bam•13m ago•0 comments

University-Branded Boot Camp Promised Tech Jobs. Nowhere Near What It Delivered

https://slate.com/life/2026/10/jobs-university-cybersecurity-training-ironcircle.html
2•tekdude•13m ago•0 comments

Americans' Social Activity Has Steeply Declined in the Past 30 Years

https://www.dataforprogress.org/blog/2026/9/29/americans-social-activity-has-steeply-declined-in-...
1•hubraumhugo•13m ago•0 comments

Don't Let Your Cypress Suite Become a Second Project

https://hitest.ai/blog/dont-let-cypress-become-a-second-project
1•easilyjs•13m ago•0 comments

Show HN: Sonia. Local AI Assistant Linux. 13Gb RAM, No GPU, Skills Supported

https://github.com/grigio/sonia-assistant
1•grigio•14m ago•0 comments

After a $93M crypto hardware-wallet supply chain attack, Ledger to review

https://www.tomshardware.com/tech-industry/cryptocurrency/ledger-to-review-sales-and-anti-tamper-...
1•sbulaev•15m ago•0 comments

How Many Screenshot Apps Does the World Need?

https://www.ianwootten.co.uk/2026/10/14/how-many-screenshot-apps-does-the-world-need/
1•ianwootten•15m ago•2 comments

Show HN: Eulix – Local code index and call graphs for large repos, LLM optional

https://github.com/Nurysso/eulix
1•Nurysso•18m ago•0 comments

We found 110 reward hacks and grading bugs in Terminal-Bench, DeepSWE, and BFCL

https://usetokenless.com/blog/envcheck/
4•random17•18m ago•1 comments

Trees as Public Health Infrastructure

https://biographic.com/trees-as-public-health-infrastructure/
2•whiteblossom•20m ago•1 comments

Raspberry Pi puts digital handcuffs on RAM upgrades

https://www.fsf.org/blogs/community/2026-raspberry-pi
1•aray07•21m ago•1 comments

MCP-shield – Runtime security proxy and reversible secret vault for MCP

https://github.com/alexfraser-scotch/mcp-shield
2•scotchbroker•22m ago•0 comments

Specialty Steel Squeeze Drives EU Transformer Shortage

https://spectrum.ieee.org/transformer-shortage-europe-goes-steel
2•rbanffy•22m ago•0 comments

GitLab outage during rate limit preview

https://status.gitlab.com/pages/incident/5b36dc6502d06804c08349f7/6acf92b0cb21fb05a5db93f4
3•alex_suzuki•23m ago•1 comments

Global takedown hits network behind 1B phishing messages

https://www.bleepingcomputer.com/news/security/global-takedown-hits-network-behind-1-billion-phis...
4•Brajeshwar•23m ago•0 comments