fix: aggregate presence samples every five minutes with seven-day retention

This commit is contained in:
2026-10-15 17:59:43 +09:00
parent 1a1f29e397
commit d87f5bc1db
8 changed files with 103 additions and 13 deletions
+2
View File
@@ -3,6 +3,8 @@ export const ACTIVITY_INTERVAL_MS = 60000;
export const ANALYTICS_BATCH_SIZE = 20;
export const ACTIVE_WINDOW_MS = 90000;
export const PRESENCE_INTERVAL_MS = 10000;
export const PRESENCE_SAVE_INTERVAL_MS = 5 * 60 * 1000;
export const PRESENCE_RETENTION_MS = 7 * 24 * 60 * 60 * 1000;
export const RETENTION_MS = 90 * 24 * 60 * 60 * 1000;
export const RETRY_QUEUE_LIMIT = 100;
export const RETRY_MAX_AGE_MS = VISIT_SESSION_MS;