Every time a system writes data, it has to decide how to use its cache, and that choice trades speed against safety. SAN storage systems mostly use one of two approaches, Write-Back and Write-Through modes, and this section walks through Write-Back Mode vs. Write-Through Mode in storage systems.

Logical Flow of data on SAN

In Write-Back mode the data goes into a cache (RAM or NVRAM) first, and the host is told the write is done straight away, before anything reaches the storage device (disk/SSD). The real write to disk happens asynchronously a little later.

Process Flow:

  1. Host sends write request → the data lands in cache.
  2. Cache acknowledges write completion to the host immediately (it doesn’t wait for the disk).
  3. Later, when the system has spare capacity, the data is written to disk in batches.

Advantages:

  1. High Performance: lower write latency, because the host isn’t waiting on the disk.
  2. Efficient Disk Usage: writes are grouped before they’re flushed to disk, so there’s less disk I/O.
  3. Improved Throughput: helps applications that write a lot.

Disadvantages:

  1. Risk of Data Loss: if the power or hardware fails before the cached data reaches disk, that data can be lost.
  2. Requires Battery Backup (BBU) or Non-Volatile Cache (NVRAM): this protects data that hasn’t been written yet if something fails.

Use Cases:

  1. Fast databases and applications that need quick writes.
  2. Virtualized environments (e.g., VMware, Hyper-V) that do better on low-latency storage.
  3. SAN storage systems whose cache is battery-backed or non-volatile (NVRAM).

In Write-Through mode the data is immediately written to both the cache and the storage device, and only then does the host get its acknowledgment, so the data is always on persistent storage by the time the host hears back.

Process Flow:

  1. Host sends write request → the data is written to cache and storage at the same time.
  2. Host receives acknowledgment only after data is securely written to disk.
  3. The cache keeps a copy to speed up later reads, but it never holds back the write to disk.

Advantages:

  1. High Data Reliability: the data is always on disk before the acknowledgment, so nothing is lost.
  2. Simpler Implementation: you don’t need battery backup or NVRAM.
  3. Better for Critical Applications: data stays intact even when power or hardware fails.

Disadvantages:

  1. Slower Write Performance: every write has to hit the disk, which adds latency.
  2. Increased Disk Wear: all those constant writes can wear out SSDs and HDDs faster.

Use Cases:

  1. Mission-critical applications where keeping data intact matters more than speed.
  2. Financial systems (e.g., banking, transaction processing).
  3. Logging and journaling systems that have to guarantee consistent data.

Feature Write-Back Mode  Write-Through Mode 
Write Acknowledgment Immediate (after cache write) Only after disk write
Performance Faster (low latency) Slower (higher latency)
Data Safety Risk of data loss (unless NVRAM is used) No risk of data loss
Use of Cache Write caching + read optimization Read caching only
Best for High-performance workloads Data integrity-focused applications

Write-Back Mode:
  • Read Hit: the data is read straight from the cache.
  • Write Hit: only the cache is updated, and the disk catches up later, when the controller destages that block from cache.
Write-Through Mode:
  • Read Miss: the data is read from the Disk, passing through the cache.
  • Write Miss: the data is written to the cache and the disk at the same time.
  • Use Write-Back Mode when performance comes first and you have reliable power backup (BBU/NVRAM).
  • Use Write-Through Mode when data integrity is critical and you can’t afford to lose any data.

Interview questions

Click any question to open it. Each one is phrased the way an interviewer would ask it, and under it you’ll find why they ask and one way you could answer in your own words.

Fresher level

1. Can you explain in simple words the difference between write-back and write-through?

Why they ask this: It’s a basic storage idea, and they want to hear exactly when the host gets its acknowledgment in each mode.

How you might answer: In write-back the array puts the data in cache, tells the host it’s done straight away and writes it to disk later. In write-through it writes to disk first and only then tells the host. So write-back is faster, while write-through is slower but the data’s already on disk when the host hears back.

2. Why is write-back faster for the application?

Why they ask this: They want to know you understand where the waiting time goes during a write.

How you might answer: The application only waits for the data to land in cache, which is fast memory, and not for the slower disk. On top of that, the array can group lots of small writes and send them to disk in batches, which makes better use of the disks.

2–5 years experience

3. After a power test, an array switched itself from write-back to write-through and writes got slow. What is likely going on?

Why they ask this: It shows whether you connect cache mode to battery or NVRAM health, a real situation that trips up a lot of people.

How you might answer: Most arrays only run write-back when the cache is protected by a battery or non-volatile memory. If the battery failed the test or is still charging, the array drops to write-through to protect data, and now every write waits for the disk. I’d look at the battery or BBU status in the array’s management tool and the event log. If it’s charging I’d let it finish, and if it’s failed I’d get it replaced and confirm the cache goes back to write-back.

4. A database admin asks you to turn on write-back on a server RAID card that has no battery. What would you say?

Why they ask this: They want to see you put data safety first and can explain the risk clearly.

How you might answer: I’d explain that without a battery or flash-backed cache, a power cut could lose writes the database already believes are safe, and that can corrupt the database. I’d suggest fitting a battery or flash-backed cache module first and then turning on write-back, and until then I’d stay on write-through even though it’s slower.

Senior level

5. The lesson says financial systems often use write-through. How do enterprise arrays give those systems speed and safety at the same time?

Why they ask this: They want to see you know how real arrays protect write-back cache, beyond the textbook rule.

How you might answer: Most enterprise arrays use write-back but protect the cache: the write is held in non-volatile or battery-backed cache, and usually mirrored to the second controller, before the host gets its acknowledgment. That way a power cut or a single controller failure doesn’t lose the data. I’d confirm that protection with the vendor and test it, instead of forcing write-through and paying for it in latency.

6. How would you decide the cache policy for different workloads on a shared array?

Why they ask this: It checks whether you can balance performance and data safety across many apps, and explain why.

How you might answer: By default I’d use write-back with protected cache for most workloads, like VMs and databases, because it cuts write latency a lot, and keep write-through for cases where the cache can’t be protected or a vendor or audit rule requires it. I’d also keep an eye on cache usage. If one heavy write workload keeps the cache full, the array has to flush all the time and everyone slows down, so that workload may need its own faster disks or a separate array.

Further reading: Write-Back Mode vs. Write-Through Mode in Storage Systems

If you want to go further with write-back mode, the official reference is the SNIA Online Dictionary of storage terms. You can also work through the full Storage Area Network (SAN) Storage course on SaatVedha one step at a time.

Scroll to Top

This website uses cookies

We use a few cookies to keep this site working. If you allow it, we also use Google Analytics to count visits so we can improve our lessons. You can accept all, deny the optional ones, or choose what to allow.