Week 6: Application Engineering Mongo Application Engineering 1. Durability of Writes 2. Availability / Fault Tolerance 3. Scaling WriteConcern Traditionally when we insert/update records that operation is performed as a fire and forget, Mongo Shell however wants to know if the operation is successful and hence calls getLastError every single time. There are couple of arguments for (getLastError) with which the operations can be perfomed W: 1 - - wait for a write acknowledgement. Still not durable, if the changes were made in memory returns true. Not necessarily after it is written to disk. If the system fails before writing to disk the data will be lost. J:1 -- journal. Return only acknowledgement on disk write and is guaranteed. The operation can be replayed if lost. Api.mongodb...