Skip to content

hotfix: remove redis scan invalidation#684

Merged
sdk-kr merged 1 commit into
mainfrom
hotfix/remove-redis-scan-invalidation
Mar 17, 2026
Merged

hotfix: remove redis scan invalidation#684
sdk-kr merged 1 commit into
mainfrom
hotfix/remove-redis-scan-invalidation

Conversation

@sdk-kr
Copy link
Copy Markdown
Contributor

@sdk-kr sdk-kr commented Mar 17, 2026

Summary

  • remove Redis SCAN-based reaction cache invalidation from the hot path
  • invalidate only exact per-user/per-write reaction keys we can derive
  • let short TTL caches expire naturally for the remaining reaction views

Why

  • SCAN MATCH on a 300k+ keyspace was driving Redis CPU to 100%
  • reaction writes were issuing multiple SCANs per request
  • Redis saturation can slow write dedupe/idempotency and contribute to duplicate post/comment submissions

Test plan

  • pnpm exec svelte-check (source workspace)
  • confirm member-activity-cache no longer calls redis.scan

@sdk-kr sdk-kr merged commit a063cb4 into main Mar 17, 2026
11 of 12 checks passed
@sdk-kr sdk-kr deleted the hotfix/remove-redis-scan-invalidation branch March 17, 2026 12:46
@github-actions
Copy link
Copy Markdown
Contributor

Staging 배포 완료

URL: https://dev.damoang.net
이미지: staging-431611f
Static Release: sha-431611f
커밋: 431611f

변경사항을 dev.damoang.net에서 확인하세요.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant