I am developing a node.js application on Windows Azure Websites (IISNode) and have installed the Azure SDK module for node.js my question is how to use the etag or timestamp field in table storage.
Is it a matter of "me" doing something e.g:
if (entities[0].Timestamp == newEntity.Timestamp)
// commit this update because we are dealing with the latest copy of this entity
else
// oops! one of the entities is newer than the other, better not save it
Or do I need to listen for a error returned by the tableService.updateEntity( ... for an error returned or something ?
Any help or advice appreciated
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…