Every write waits for the disk, or you batch and commit later: the trade-off between reliability and throughput
Writing a record into a system usually comes in only two shapes: wait for storage confirmation immediately after writing, or accumulate a small batch and com…

Writing a record into a system usually comes in only two shapes: wait for storage confirmation immediately after writing, or accumulate a small batch and commit it together. The first sounds safe and the second sounds risky, but what actually decides which one to pick is how large a loss window the business can accept, and how much write latency it can tolerate.
Take an example. Suppose a service has to record audit events, peaking at two thousand per second. Waiting for each one to land on disk means two thousand round trips, each waiting for storage to answer; the busier the machine, the longer the queue, and the uglier the tail latency. Switch to merging a commit every five milliseconds and throughput looks much better, at the cost that if the process crashes between two commits, the records in that window are gone. This is not "optimization"; it is moving risk into an explicit time window. The disk did not get faster, you just decided at which instant to admit failure. If the business requires that not a single record be lost, that window still needs a local durable log as a backstop, otherwise the latency you saved is only borrowed.
Replication is the same kind of ledger. Synchronous replication waits for another node to confirm before returning success, so at failover the data is very likely still there; but latency is dragged down by the slowest node, especially across regions, because propagation time will not cooperate with your promise. Asynchronous replication returns quickly, but when the primary fails, the last stretch of writes that had not yet been synced may vanish. The key question here is not which is better, but whether the business can absorb duplicate writes through idempotency keys, and whether losing a stretch of records would make reconciliation fail to match.
Logging and checkpoints are another layer. Writing the log before changing data pages exists so that a crash can be replayed; the cost is writing the same data twice, and recovery time grows with the length of the log. Frequent checkpoints mean fast recovery but hurt everyday throughput; sparse ones mean everyday ease but a longer wait after a failure. Write latency, loss window, and recovery time: often you can only pick two of the three.
There is another dimension that is often overlooked: data tiering. Audit trails and accounting changes are worth the price of synchronous disk writes; losing a few seconds of click tracking is usually fine. Treating all writes the same as a matter of principle tends to end with critical data receiving no extra protection while secondary data slows down the whole path. Tiering is itself a trade-off, and it has to be written into the design document, otherwise the next time requirements change nobody remembers which records are allowed to be lost.
The cost also includes machines and people. One more synchronous replica means more hardware, bandwidth, and failure surface; batch commits require handling grouping, retries, and partial failures in code, and the test cases multiply along with it. These costs do not show up in the throughput numbers, but they surface in maintenance half a year later. Observability matters too: commit intervals, failed batches, replication lag. If these metrics are not monitored, the window is only a promise on paper.
How do you decide? Do not start by asking what the industry uses; start by asking two numbers: at worst, how many records and how many seconds can be lost, and at worst, how long can you wait. Write the limits down clearly, then compare the options. Then verify with fault drills: kill the process in the gap between commits and see how much was actually lost; stretch replica lag and see which stretch is missing after failover. Averages are weak evidence here, because incidents always happen in the tail. The designed limit is a promise, the measured behavior is evidence, and you need both.
The limitations have to be stated as well. Different storage engines, cloud disks, and networks behave very differently, so "batch commit is ten times faster" cannot be taken as a general conclusion; it can only be verified on your own workload. Batch commits concentrate risk, since one failure may take a whole batch with it; synchronous replication is constrained by physical latency, so tuning can only optimize queuing, not eliminate propagation time. So this kind of trade-off has no standard answer, only a staged choice made after writing the window down clearly and doing the validation properly.