frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

We Uncovered a Race Condition in Aurora RDS

https://hightouch.com/blog/uncovering-a-race-condition-in-aurora-rds
91•theanomaly•1h ago

Comments

redwood•1h ago
A good reminder of how people developing a mental model of adding read replicas as a way to scale is a slippery slope. At the end of the day you're scaling only one specific part of your system with certain consistency dynamics that are difficult to reason about
terminalshort•58m ago
Works fine for workloads like:

1. I need to grab some rows from a table

2. Eventual consistency is good enough

And that's a lot of workloads.

candiddevmike•56m ago
As a user, I've come to realize the situations where I think eventual consistency (or delayed processing) are good enough aren't the same as the folks developing most products. Nothing annoys me more than stuff not showing up immediately or having to manually refresh.
darth_avocado•13m ago
Sometimes users want everything to show up immediately, but not pay extra for the feature. Everything real time is expensive. Eventual consistency is a good thing for most systems.
redwood•47m ago
The future you or future team member may struggle to reason about that in the future
nijave•35m ago
You can hit the same problems horizontally scaling compute. One instance reads from the DB, a request hits a different instance which updates the DB. The original instance writes to the DB and overwrites the changes or makes decisions based on stale data.

More broadly a distributed system problem

gtowey•1h ago
This article seems to indicate that manually triggered failovers will always fail if your application tries to maintain its normal write traffic during that process.

Not that I'm discounting the author's experience, but something doesn't quite add up:

- How is it possible that other users of Aurora aren't experiencing this issue basically all the time? How could AWS not know it exists?

- If they know, how is this not an urgent P0 issue for AWS? This seems like the most basic of basic usability features is 100% broken.

- Is there something more nuanced to the failure case here such as does this depend on transactions in-progress? I can see how maybe the failover is waiting for in-flight transactions to close and then maybe hits a timeout where it proceeds with the other part of the failover by accident. That could explain why it doesn't seem like the issue is more widespread.

maherbeg•59m ago
Yeah I agree, this seems like a pretty critical feature to the Aurora product itself. We saw a similar behavior recently where we had a connection pooler in between which indicates something wrong with how they propagate DNS changes during the failover. wtf aws
CaptainKanuk•20m ago
Whenever we have to do any type of AWS Aurora or RDS cluster modification in prod we always have the entire emergency response crew standing by right outside the door.

Their docs are not good and things frequently don't behave how you expect them to.

dboreham•48m ago
Although the article has an SEO-optimized vibe, I think it's reasonable to take it as true until refuted. My rule of thumb is that any rarely executed, very tricky operation (e.g. database writer fail over) is likely to not work because there are too many variables in play and way too few opportunities to find and fix bugs. So the overall story sounds very plausible to me. It has a feel of: it doesn't work under continuous heavy write load, in combination with some set of hardware performance parameters that plays badly with some arbitrary time out. Note that the system didn't actually fail. It just didn't process the fail over operation. It reverted to the original configuration and afaics preserved data.
theanomaly•43m ago
I'm surprised this hasn't come up more often too. When we worked with AWS on this, they confirmed there was nothing unique about our traffic pattern that would trigger this issue. We also didn't run into this race condition in any of our other regions running similar workloads. What's particularly concerning is that this seems to be a fundamental flaw in Aurora's failover mechanism that could theoretically affect anyone doing manual failover.
twisteriffic•41m ago
> How is it possible that other users of Aurora aren't experiencing this issue basically all the time? How could AWS not know it exists?

If it's anything like how Azure handles this kind of issue, it's likely "lots of people have experienced it, a restart fixes it so no one cares that much, few have any idea how to figure out a root cause on their own, and the process to find a root cause with the vendor is so painful that no one ever sees it through"

nijave•24m ago
fwiw we haven't seen issues manually doing manual failovers for maintenance using the same/similar procedure described in the article. I imagine there is something more nuanced here and it's hard to draw too many conclusions without a lot more details being provided by AWS
aetherson•22m ago
My experience with AWS is that they are extremely, extremely parsimonious about any information they give out. It is near-impossible to get them to give you any details about what is happening beyond the level of their API. So my gut hunch is that they think that there's something very rare about this happening, but they refuse to give the article writer the information that might or might not help them avoid the bug.
Hovertruck•16m ago
Agreed, we've been running multiple aurora clusters in production for years now and have not encountered this issue with failovers.
jansommer•55m ago
People who have experience with Aurora and RDS Postgres: What's your experience in terms of performance? If you dont need multi A-Z and quick failover, can you achieve better performance with RDS and e.g. gp3 64.000 iops and 3125 throughput (assuming everything else can deliver that and cpu/mem isn't the bottleneck)? Aurora seems to be especially slow for inserts and also quite expensive compared to what I get with RDS when I estimate things in the calculator. And what's the story on read performance for Aurora vs RDS? There's an abundance of benchmarks showing Aurora is better in terms of performance but they leave out so much about their RDS config that I'm having a hard time believing them.
shawabawa3•19m ago
> 3125 throughput

Max throughput on gp3 was recently increased to 2GB/s, is there some way I don't know about of getting 3.125?

jansommer•9m ago
This is super confusing. Check out the RDS Postgres calculator with gp3:

> General Purpose SSD (gp3) - Throughput > gp3 supports a max of 4000 MiBps per volume

But the docs say 2000. Then there's IOPS... The calculator allows up to 64.000 but on [0], if you expand "Higher performance and throughout" it says

> Customers looking for higher performance can scale up to 80,000 IOPS and 2,000 MiBps for an additional fee.

[0] https://aws.amazon.com/ebs/general-purpose/

nijave•9m ago
RDS stripes multiple gp3 volumes. Docs are saying 4Gi/s per instance is the max for gp3 if I'm looking at the right table
nijave•12m ago
We've seen better results and lower costs in a 1 writer, 1-2 reader setup on Aurora PG 14. The main advantages are 1) you don't re-pay for storage for each instance--you pay for cluster storage instead of per-instance storage & 2) you no longer need to provision IOPs and it provides ~80k IOPs

If you have a PG cluster with 1 writer, 2 readers, 10Ti of storage and 16k provision IOPs (io1/2 has better latency than gp3), you pay for 30Ti and 48k PIOPS without redundancy or 60Ti and 96k PIOPS with multi-AZ.

The same Aurora setup you pay for 10Ti and get multi-AZ for free (assuming the same cluster setup and that you've stuck the instances in different AZs).

I don't want to figure the exact numbers but iirc if you have enough storage--especially io1/2--you can end up saving money and getting better performance. For smaller amounts of storage, the numbers don't necessarily work out.

There's also 2 IO billing modes to be aware of. There's the default pay-per-IO which is really only helpful for extreme spikes and generally low IO usage. The other mode is "provisioned" or "storage optimized" or something where you pay a flat 30% of the instance cost (in addition to the instance cost) for unlimited IO--you can get a lot more IO and end up cheaper in this mode if you had an IO heavy workload before

I'd also say Serverless is almost never worth it. Iirc provisioning instances was ~17% of the cost of serverless. Serverless only works out if you have ~ <4 hours of heavy usage followed by almost all idle. You can add instances fairly quickly and failover for minimal downtime (of course barring running into the bug the article describes...) to handle workload spikes using fixed instance sizes without serverless

grhmc•51m ago
Yikes! This is exactly the kind of invariant I'd expect Aurora to maintain on my behalf. It is why I pay them so much...
bob1029•45m ago
> Aurora's architecture differs from traditional PostgreSQL in a crucial way: it separates compute from storage.

I find this approach very compelling. MSSQL has a similar thing with their hyperscale offering. It's probably the only service in Azure that I would actually use.

robinduckett•43m ago
Glad to know I’m not crazy.
d1egoaz•9m ago
> AWS has indicated a fix is on their roadmap, but as of now, the recommended mitigation aligns with our solution: use Aurora’s Failover feature on an as-needed basis and ensure that no writes are executed against the DB during the failover.

Is there a case number where we can reach out to AWS regarding this recommendation?

Is the Gut-Autism Hypothesis a 'Dead End'?

https://www.medscape.com/viewarticle/gut-autism-hypothesis-dead-end-2025a1000vjo
1•wjb3•1m ago•1 comments

Keeplinker – 1-click link saving with drag-drop collections and public sharing

https://keeplinker.com/
1•intotheabyss999•3m ago•0 comments

A Rigorous Approach to the Algorithmic Composition of Iannis Xenakis(2009) [pdf]

https://monoskop.org/images/3/38/Hoffmann_Peter_Music_Out_of_Nothing_A_Rigorous_Approach_to_Algor...
1•ofalkaed•4m ago•0 comments

StutterZero: Speech Conversion for Stuttering Transcription and Correction

https://arxiv.org/abs/2510.18938
1•internetguy•5m ago•0 comments

Lessons introductory to the modern higher algebra (1876)

https://archive.org/details/3rdedlessonintro00salmuoft
1•nigelvr•6m ago•0 comments

Nintendo Gamecube Controller Protocol

https://www.int03.co.uk/crema/hardware/gamecube/gc-control.html
2•xeonmc•8m ago•0 comments

Kitten Space Agency pre-alpha release

https://ahwoo.com/store/KPbAA1Au/kitten-space-agency
2•tomsto•8m ago•0 comments

Raptor mini is rolling out in public preview for GitHub Copilot

https://github.blog/changelog/2025-11-10-raptor-mini-is-rolling-out-in-public-preview-for-github-...
2•nateb2022•9m ago•0 comments

Comet sends all your URLs to Perplexity servers and there's no way to stop it

https://shivankaul.com/blog/comet-privacy
1•skaul•9m ago•1 comments

HipKittens: Fast and Furious AMD Kernels

https://hazyresearch.stanford.edu/blog/2025-11-09-hk
1•mpweiher•11m ago•0 comments

Jimmy Wales, Wikipedia's founder/co-founder – Jung and Naiv: Episode 792

https://www.youtube.com/watch?v=uswRbWyt_pg
2•LauraMedia•12m ago•1 comments

Diabetes: The Silent Killer Across India

https://pharmeasy.in/research/diabetes
2•evanjrowley•12m ago•1 comments

Allowing Failure

https://hollisrobbinsanecdotal.substack.com/p/allowing-failure
1•HR01•13m ago•0 comments

Show HN: Open-Source GoLang SDK for Multi-Tenant Agents

https://github.com/Ingenimax/agent-sdk-go
1•tech-aguirre•13m ago•0 comments

Show HN: Bubble Lab – Code-based agentic workflow platform (open-source)

https://github.com/bubblelabai/BubbleLab
3•hkselinali•17m ago•1 comments

Show HN: Harvest Bowl – A simple app for building meals with exact grams/macros

https://harvestbowlapp.com
2•harvest_bowl•17m ago•1 comments

Tutorial for a Webchat AI Agent that books into a real calendar

https://github.com/block-integration-api/tutorial-webchat
1•venuur•18m ago•1 comments

Show HN: Linkeddit PH#1 Find Customers in Seconds Write Viral Content in Minutes

https://www.linkeddit.com/
1•elephantisfast•18m ago•0 comments

More Is Less: Extra Features in Contactless Payments Break Security [pdf]

https://www.usenix.org/system/files/usenixsecurity25-pavlides.pdf
1•PaulHoule•18m ago•0 comments

Show HN: GreasePanda – Modify Any Website Instantly with Userscripts

https://chromewebstore.google.com/detail/greasepanda/aopmgjdppgdhejibmejbahdkhpklkdjf
1•sudosoft•18m ago•0 comments

Alex Karp Questions the Value of a College Degree–His Company Made Alternative

https://www.investopedia.com/palantir-ceo-alex-karp-questions-the-value-of-a-college-degree-so-hi...
1•paulpauper•20m ago•0 comments

No one knows the answer, and that's the point

https://news.harvard.edu/gazette/story/2025/11/no-one-knows-the-answer-and-thats-the-point/
1•paulpauper•21m ago•0 comments

iPhone Pocket Now Available to Order, but Selling Out

https://www.macrumors.com/2025/11/14/iphone-pocket-already-selling-out/
2•JumpCrisscross•21m ago•2 comments

John von Neumann Shot Lightning from His Arse

https://www.theintrinsicperspective.com/p/john-von-neumann-shot-lightning-from
2•paulpauper•22m ago•0 comments

The Forgotten Pioneers of Computational Physics

https://physicsworld.com/a/the-forgotten-pioneers-of-computational-physics/
1•porridgeraisin•23m ago•0 comments

Show HN: Go-async – typed Tasks with async/await like APIs

https://github.com/unkn0wn-root/go-async
3•unkn0wn_root•23m ago•0 comments

Antibiotic reprograms gut bacteria to produce longevity compounds

https://newatlas.com/aging/antibiotic-longevity-microbiome/
2•dabinat•24m ago•0 comments

Scantronics

https://mordenstar.com/blog/scantron/
2•vunderba•25m ago•1 comments

Spotlight Effect

https://en.wikipedia.org/wiki/Spotlight_effect
1•thunderbong•25m ago•0 comments

Keystone Maintainers Keep the Internet Going

https://vlad.website/keystone-maintainers-keep-the-internet-going/
1•speckx•26m ago•0 comments