frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Why Strong Consistency?

https://brooker.co.za/blog/2025/11/18/consistency.html
22•SchwKatze•21h ago

Comments

kukkeliskuu•1h ago
I think we should stop calling these systems eventually consistent. They are actually never consistent. If the system is complex enough and there are always incoming changes, there is never a point in time in these "eventually consistent systems" that they are in consistent state. The problem of inconsistency is pushed to the users of the data.
dangoodmanUT•25m ago
They eventually become consistent from the frame of a single write. They would become consistent if you stopped writes, so they will eventually get there
mystifyingpoi•8m ago
> They are actually never consistent

I don't see it this way. Let's take a simple example - banks. Your employer sends you the salary from another bank. The transfer is (I'd say) eventually consistent - at some point, you WILL get the money. So how it can be "never consistent"?

YetAnotherNick•3m ago
If the bank transaction is eventually consistent, it means that the state can flip and the person receiving will "never" be sure. A state that the transaction will be finished later is a consistent state.
Animats•52m ago
So why isn't the section that needs consistency enclosed in a transaction, with all operations between BEGIN TRANSACTION and COMMIT TRANSACTION? That's the standard way to get strong consistency in SQL. It's fully supported in MySQL, at least for InnoDB. You have to talk to the master, not a read slave, when updating, but that's normal.
sgarland•25m ago
For the love of all that’s holy, please stop doing read-after-write. In nearly all cases, it isn’t needed. The only cases I can think of are if you need a DB-generated value (so, DATETIME or UUIDv1) from MySQL, or you did a multi-row INSERT in a concurrent environment.

For MySQL, you can get the first auto-incrementing integer created from your INSERT from the cursor. If you only inserted one row, congratulations, there’s your PK. If you inserted multiple rows, you could also get the number of rows inserted and add that to get the range, but there’s no guarantee that it wasn’t interleaved with other statements. Anything else you wrote, you should already have, because you wrote it.

For MariaDB, SQLite, and Postgres, you can just use the RETURNING clause and get back the entire row with your INSERT, or specific columns.

mystifyingpoi•5m ago
> please stop doing read-after-write

But that could be applied only in context of a single function. What if I save a resource and then mash F5 in the browser to see what was saved? I could hit a read replica that wasn't fast enough and the consistency promise breaks. I don't know how to solve it.

groestl•4m ago
Local storage, sticky sessions, consistent hashing cache
generalzod•5m ago
in the read after write scenario, why not use something like consistency tokens ? and redirect to primary if the secondary detects it has not caught up ?

Replace your boss before they replace you

https://replaceyourboss.ai/
155•_tk_•1h ago•38 comments

Same-day upstream Linux support for Snapdragon 8 Elite Gen 5

https://www.qualcomm.com/developer/blog/2025/10/same-day-snapdragon-8-elite-gen-5-upstream-linux-...
192•mfilion•3h ago•87 comments

The Input Stack on Linux: An End-to-End Architecture Overview

https://venam.net/blog/unix/2025/11/27/input_devices_linux.html
66•venamresm__•3h ago•3 comments

Quake Engine Indicators

https://fabiensanglard.net/quake_indicators/index.html
103•liquid_x•3d ago•18 comments

Memories of .us

https://computer.rip/2025-11-11-dot-us.html
22•sabas_ge•1d ago•0 comments

Why Strong Consistency?

https://brooker.co.za/blog/2025/11/18/consistency.html
22•SchwKatze•21h ago•9 comments

Linux Kernel Explorer

https://reverser.dev/linux-kernel-explorer
468•tanelpoder•13h ago•70 comments

Penpot: The Open-Source Figma

https://github.com/penpot/penpot
611•selvan•17h ago•143 comments

Tell HN: Happy Thanksgiving

219•prodigycorp•14h ago•51 comments

Show HN: Runprompt – run .prompt files from the command line

https://github.com/chr15m/runprompt
68•chr15m•5h ago•26 comments

The VanDersarl Blériot: a 1911 airplane homebuilt by teenage brothers

https://www.historynet.com/vandersarl-bleriot/
21•ForHackernews•3h ago•12 comments

Pakistan says rooftop solar output to exceed grid demand in some hubs next year

https://www.reuters.com/sustainability/boards-policy-regulation/pakistan-says-rooftop-solar-outpu...
87•toomuchtodo•3h ago•59 comments

Feedback doesn't scale

https://another.rodeo/feedback/
21•ohjeez•1d ago•0 comments

Inspired by Spider-Man, scientists recreate web-slinging technology

https://scienceclock.com/inspired-by-spider-man-scientists-recreate-web-slinging-technology/
9•ohjeez•23h ago•0 comments

TPUs vs. GPUs and why Google is positioned to win AI race in the long term

https://www.uncoveralpha.com/p/the-chip-made-for-the-ai-inference
115•vegasbrianc•6h ago•142 comments

Cherry gives up German production and wants to sell core division

https://www.heise.de/en/news/Cherry-gives-up-German-production-and-wants-to-sell-core-division-11...
24•jsheard•1h ago•18 comments

Mixpanel Security Breach

https://mixpanel.com/blog/sms-security-incident/
172•jaredwiener•12h ago•99 comments

Coq: The World's Best Macro Assembler? (2013) [pdf]

https://nickbenton.name/coqasm.pdf
120•addaon•15h ago•53 comments

DIY NAS: 2026 Edition

https://blog.briancmoses.com/2025/11/diy-nas-2026-edition.html
343•sashk•17h ago•215 comments

Show HN: MkSlides – Markdown to slides with a similar workflow to MkDocs

https://github.com/MartenBE/mkslides
50•MartenBE•6h ago•7 comments

The current state of the theory that GPL propagates to AI models

https://shujisado.org/2025/11/27/gpl-propagates-to-ai-models-trained-on-gpl-code/
129•jonymo•7h ago•165 comments

Ray Marching Soft Shadows in 2D (2020)

https://www.rykap.com/2020/09/23/distance-fields/
155•memalign•12h ago•27 comments

Show HN: SyncKit – Offline-first sync engine (Rust/WASM and TypeScript)

https://github.com/Dancode-188/synckit
45•danbitengo•5h ago•21 comments

Interactive λ-Reduction

https://deltanets.org/
99•jy14898•2d ago•21 comments

Music eases surgery and speeds recovery, study finds

https://www.bbc.com/news/articles/c231dv9zpz3o
163•1659447091•15h ago•81 comments

Technical Deflation

https://benanderson.work/blog/technical-deflation/
52•0x79de•3d ago•53 comments

G0-G3 corners, visualised: learn what "Apple corners" are

https://www.printables.com/model/1490911-g0-g3-corners-visualised-learn-what-apple-corners
114•dgroshev•4d ago•57 comments

Seagate achieves 6.9TB storage capacity per platter

https://www.tomshardware.com/pc-components/hdds/seagate-achieves-a-whopping-6-9tb-storage-capacit...
44•elorant•3h ago•38 comments

We're losing our voice to LLMs

https://tonyalicea.dev/blog/were-losing-our-voice-to-llms/
287•TonyAlicea10•5h ago•325 comments

Gemini CLI Tips and Tricks for Agentic Coding

https://github.com/addyosmani/gemini-cli-tips
372•ayoisaiah•1d ago•129 comments