4 ms·
If you need to hold a lock for 10ms in order to ensure things are transactional, it can have a bigger impact. Also, if you get a slow delivery even N packets,
by jhugg 10y ago
If you need to hold a lock for 10ms in order to ensure things are transactional, it can have a bigger impact.
Also, if you get a slow delivery even N packets, where N seems large, you’ve just incresed your chances of hitting that issue 10x. This is brutal on long tail latencies.
But no, not all systems need this.
- brianwawok 10y agoYa exactly. If you are writing something high performance, I don't think you want locks. You are more likely to do append only and sort it out when you do a read or such (or fancy magic down the Cassandra route). For stupid webapp, meh. Most of the time when a page load takes 10 round trips to the DB it is not for a lock, it is to read a bunch of tables to render a page.