Skip to content

Conversation

@evermake
Copy link
Member

Implement an efficient Runner using Effect to fetch updates in batches and process them concurrently, addressing issue #15.

The previous makeSimple runner fetched and processed updates one by one, which is inefficient for high-throughput bots. This PR introduces a new make function that fetches updates in batches of up to 100 (Telegram's limit) and processes them concurrently using Effect streams, significantly improving performance. The makeSimple function is now a wrapper around make with concurrency: 1 to maintain its original sequential processing guarantee while still benefiting from batched fetching.


Open in Cursor Open in Web

@cursor
Copy link

cursor bot commented Jan 16, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

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.

3 participants