Choosing the right fit – Immediate or Eventual Persistence?
The author argues that eventual persistence is a viable option for some applications, particularly those that prioritize performance and cost over immediate durability. This approach means writing data to an intermediate layer, such as memory or a file system cache, with the actual write to disk queued up and happening asynchronously. In contrast, immediate persistence ensures writes are synchronous and acknowledged only after data is written to disk. The author suggests that certain workloads can function with deferred writes in favor of performance and cost, especially when paired with dependable storage solutions and high availability options. They also emphasize that durability is desirable but not always necessary, and that some applications may be able to tolerate rare cases of data loss without significant consequences.