Skip to content

reddit firehose: pace pages, survive 'slow down', never lag past the hour - #280

Merged
ralyodio merged 1 commit into
mainfrom
reddit-firehose-pacing
Nov 9, 2026
Merged

ralyodio merged 1 commit into
mainfrom
reddit-firehose-pacing

Conversation

@ralyodio

@ralyodio ralyodio commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #279: the first deploy hit Arctic Shift's 422 'slow down' every pass. Paced, failure-tolerant, lag-bounded; per-sub reddit crawl reduced to a weekly check.

🤖 Generated with Claude Code

…hour

Arctic Shift answers 422 'Timeout. Maybe slow down a bit' after ~5 back-
to-back pages (measured), and pages are capped at 100 (~6 s of Reddit). So:
- pages 4 s apart, 12 per pass, a pass every 60 s (~11/min, just over
  Reddit's pace); env REDDIT_FIREHOSE_GAP_MS / _PAGES / _MS
- a refusal ends the pass but keeps and stores what it read; the next
  pass resumes from the cursor
- more than 50 min behind, skip to 5 min back and log 'skipped'
- reddit per-source floor 60 min -> 7 days: the firehose carries new
  posts, and per-sub asks spend the same per-IP budget
- drop the on-view refresh from #278 (bots read /r/* constantly, and each
  view would spend that budget too)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sh1pt-actions-fleet
sh1pt-actions-fleet Bot force-pushed the reddit-firehose-pacing branch from ef200ee to a4ab3f5 Compare November 9, 2026 20:22
@ralyodio
ralyodio merged commit 35c2b3a into main Nov 9, 2026
3 checks passed
@ralyodio
ralyodio deleted the reddit-firehose-pacing branch November 9, 2026 20:25
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