Database Reference
In-Depth Information
ment request in the order they are received. To implement atomic counters, you can use
the ADD operation of the UpdateItem API. A good use case to implement atomic coun-
ters is website visitor count. So, in this case, the request will keep updating the attribute
by one regardless of its current or previous value. Atomic counters are not idempotent,
which means the counter value would get updated even if the request fails, so it does not
guarantee accuracy of count. So it is advisable to use atomic counters only where a slight
overcalculation or undercalculation of value is acceptable and should not be used where
getting the correct count is critical. So using atomic counters for the website visitor
counter is good, but it is not advisable to use them for any banking operation.
Search WWH ::




Custom Search