In case of using DynamoDB as event db and events arriving out of order, how can I ensure that data persisted in the table is always the latest. For example,
Table_a has a customer record that was updated on Feb 15, 2020. If a delayed event comes through with an updated date of Feb 14, 2020; I do not want to update the table. Doing a read and determining on a service could turn this into a costlier operation, so want to avoid that too. Looking for a solution where DynamoDB can internally handle this.
On Cassandra, this is possible as the client can provide the timestamp to determine the most recent update to a column. Wondering if DynamoDB supports this.