---
title: "Comment by Parsa Aftabi on \"System Design Drill Day 15: Real-Time Chat and Live Order Tracking\" | Hashnode"
description: "I would add a short Redis cache of recent messages per conversation for resync. When many clients reconnect at once, serving those recent messages from Redis in"
url: "https://hashnode.com/posts/system-design-drill-day-15-real-time-chat-and-live-order-tracking/6af182ac97c64d348b044f28/comment/6af1eb783fc61c9cdfaece5e"
---

[Discussion](https://hashnode.com/posts/system-design-drill-day-15-real-time-chat-and-live-order-tracking/6af182ac97c64d348b044f28)

Comment [System Design Drill Day 15: Real-Time Chat and Live Order Tracking](https://hashnode.com/posts/system-design-drill-day-15-real-time-chat-and-live-order-tracking/6af182ac97c64d348b044f28)

[Parsa Aftabi](https://hashnode.com/@parsaaftabi)

[Nov 9](https://hashnode.com/posts/system-design-drill-day-15-real-time-chat-and-live-order-tracking/6af182ac97c64d348b044f28/comment/6af1eb783fc61c9cdfaece5e)

I would add a short Redis cache of recent messages per conversation for resync. When many clients reconnect at once, serving those recent messages from Redis instead of MySQL avoids a spike on the database, and MySQL still covers older gaps.

[Anish Ansari](https://hashnode.com/@anish78)

[Nov 10](https://hashnode.com/posts/system-design-drill-day-15-real-time-chat-and-live-order-tracking/6af182ac97c64d348b044f28/comment/6af1eb783fc61c9cdfaece5e#reply-6af2eed2ef788f8d609de5d1)

Nice addition Parsa, a small per-conversation cache of the last few messages takes the reconnect spike off MySQL, and since MySQL stays the source of truth a cache miss just falls back to the normal after\_seq query.
