Write-through writes data to both cache and database in the same operation. The cache always has the latest data.
Write path:
App writes to cache
Cache synchronously writes to database
Both complete before returning success
You get strong consistency since cache and database stay in sync. The trade-off is higher write latency. Every write waits for both operations. Use this when read consistency matters more than write speed.