---
title: "Comment by Kamran Khan on \"System Design Drill Day 5: Load Balancing and Horizontal Scaling\" | Hashnode"
description: "One gotcha I'd add from a rollout like this: when you sync APP_KEY across the new boxes, every existing encrypted cookie dies at the same moment. We watched a c"
url: "https://hashnode.com/posts/system-design-drill-day-5-load-balancing-and-horizontal-scaling/6adad0dea48cd2e249e95924/comment/6adb5d1c1e14674ebf378b5e"
---

[Discussion](https://hashnode.com/posts/system-design-drill-day-5-load-balancing-and-horizontal-scaling/6adad0dea48cd2e249e95924)

Comment [System Design Drill Day 5: Load Balancing and Horizontal Scaling](https://hashnode.com/posts/system-design-drill-day-5-load-balancing-and-horizontal-scaling/6adad0dea48cd2e249e95924)

[Kamran Khan](https://hashnode.com/@kamrankhandev)

[Oct 23](https://hashnode.com/posts/system-design-drill-day-5-load-balancing-and-horizontal-scaling/6adad0dea48cd2e249e95924/comment/6adb5d1c1e14674ebf378b5e)

One gotcha I'd add from a rollout like this: when you sync APP\_KEY across the new boxes, every existing encrypted cookie dies at the same moment. We watched a chunk of users get bounced mid session during the cutover. If you're on Laravel 11, APP\_PREVIOUS\_KEYS lets you rotate instead of flipping the switch, so old cookies keep decrypting until they expire naturally. Worth calling out before the big sale, not after.

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

[Oct 23](https://hashnode.com/posts/system-design-drill-day-5-load-balancing-and-horizontal-scaling/6adad0dea48cd2e249e95924/comment/6adb5d1c1e14674ebf378b5e#reply-6adb60760e2844ea3a4a592d)

Good catch Kamran, a hard APP\_KEY swap logging everyone out in the middle of a sale is a painful way to learn that. Rotating with APP\_PREVIOUS\_KEYS so old cookies keep decrypting is the much safer move.
