We have a Cassandra table where we are storing the number of sales of items in our Catalog. We are using counter data type for this purpose. We are still not sure if counter can handle race conditions. Multiple servers trying to increment the count for the same item.
Do counters handle race conditions or do we need to implement our own locking system for the updates? If they do not then what is the advantage of using a counter over an integer?