Skip to content

reddit: firehose keeps every /r/* feed current; fix nested NUL placeholders - #279

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

ralyodio merged 1 commit into
mainfrom
reddit-firehose

Conversation

@ralyodio

@ralyodio ralyodio commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #278: all r/* feeds hourly (in practice ~2-3 min behind Reddit) via the Arctic Shift site-wide stream, plus the real source of the NUL write failures.

🤖 Generated with Claude Code

…olders

All ~50k subreddits hourly by asking each one is ~14 req/s to a volunteer
mirror. Instead a poller job (reddit-firehose, every 2 min) pages every new
post on Reddit from Arctic Shift (~25 posts/s = ~15 req/min, ~1 min behind
Reddit), matches r:sub:<subreddit> and r:user:<author> rows, and runs each
through crawlFeed with the posts in hand (dedupe/FTS/keywords/schedule as a
normal crawl). REDDIT_FIREHOSE=0 switches it off; REDDIT_FIREHOSE_MS sets
the pace.

The NUL write failures were our own: redditMarkdown's \u0000N\u0000
placeholders nest (code span inside a link label) and a single restore
pass leaked the inner one. Restore until none remain, then strip.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ralyodio
ralyodio merged commit 85fd55c into main Nov 9, 2026
3 checks passed
@ralyodio
ralyodio deleted the reddit-firehose branch November 9, 2026 19:56
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