title: How can I be notified of an index being updated on DynamoDB?
body: <p>I have a table (<code>key=username</code>, <code>value=male or female</code>) and an index on the values.</p>
  
  <p>After I add an item to the table, I want to update the counts of males and females. <strong>However, after a successful write, as the index is a Global Secondary Index, the count query is not consistent.</strong></p>
  
  <p>Is there a way (dynamo db Streams, Lambda, ...) to monitor when the index is up to date?</p>
  
  <p>Note that Im not looking for a solution that involves something else (keep count of increments in redis or ...), what I describe here is a simplified problem to especially ask a question about how can I monitor an index in dynamo.</p>
  
  <p>Thanks!</p>