Solve hotspotting in a database
You can for sure scale up. Otherwise, see below. Either give up consistency (1), or make writes slower (2), or use a version number (3). Or break the data down into smaller consistent chunks (4), which is usually not feasible. 1. Give up consistency and expose clients to stale writes.…