Hacker News new | past | comments | ask | show | jobs | submit login

I think this is kinda reductive. If you’ve got users all over the world, then global DB replicas are a sizable performance improvement, whether you’ve got 1 engineer or 1,000.



Yes, global read replicas can be helpful, though the replica lag needs to be thoughtfully considered.

IMO, one of the worst offenders is places with microservices, who absolutely do not need microservices, and are doing reads-after-writes.

For every RDBMS I know of other than MySQL (even MariaDB has this), you can tack a RETURNING clause onto the write, and get the entire row back. This shouldn’t be necessary for most cases anyway, because by definition, you have (almost) all of the row data already. The only times you wouldn’t is DB-generated values like an auto-incrementing ID, UUID from the DB, or a timestamp from the DB. MySQL can actually handle the first case; the cursor holds LAST_INSERT_ID. So if you had a monolith, it’s trivial to pass what you wrote to the next function that needs it – boom, no concern about stale data, and one fewer DB round trip.

Even with separate services, this is still possible, though somewhat slower, but I’ve not seen anyone do it.


A performance improvement at a huge cost, sure.

People with no data seem to think that these things matter to the end user.

The only time uptime and performance matter is at point of purchase.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: