The hidden reason your code isn't updating #webdevelopment #tech #debugging: mini course video thumbnail

Free mini course

The hidden reason your code isn't updating

he write path updates the row in Postgres and stops there. The read path checks Redis first and never learns anything changed. So a user edits their own profile, gets a 200 back, reloads the page, and sees the old name staring at them.

This Short draws the drift moving: the update lands in the database, the next read hits the cache, the stale value comes back, and nothing errors and nothing pages. Then the fix: delete the key inside the same write, or write through, because a TTL is not invalid

Watch on YouTube

he write path updates the row in Postgres and stops there. The read path checks Redis first and never learns anything changed. So a user edits their own profile, gets a 200 back, reloads the page, and sees the old name staring at them.

This Short draws the drift moving: the update lands in the database, the next read hits the cache, the stale value comes back, and nothing errors and nothing pages. Then the fix: delete the key inside the same write, or write through, because a TTL is not invalid

Frequently asked questions

What is The hidden reason your code isn't updating about?

he write path updates the row in Postgres and stops there. The read path checks Redis first and never learns anything changed.

Which topics does this mini course relate to?

Web Development, Caching, Redis, Node.js, Backend Development, System Design.