Skip to content

feat: add queue and single-flight cache modules#8

Merged
calebboyd merged 2 commits intomainfrom
dev
Mar 16, 2026
Merged

feat: add queue and single-flight cache modules#8
calebboyd merged 2 commits intomainfrom
dev

Conversation

@calebboyd
Copy link
Copy Markdown
Owner

Summary

  • add a new queue module with Queue/Worker, codec support, retries with backoff, DLQ routing, output streams, and worker observability helpers
  • add a new cache module implementing a distributed single-flight cache with local + Redis tiers, stream fanout, invalidation, abort support, and shutdown handling for unreachable clients
  • harden RedisStream with buffer-aware parsing, control-connection error forwarding, safer shutdown, PEL pagination/claim coverage, and expanded docs/tests/build support

Motivation

The base stream iterator is useful, but most consumers need higher-level primitives for background jobs and request coalescing. This packages those patterns directly in the library while tightening shutdown and parsing behavior that showed up in tests.

Verification

  • npm test
  • npm run build

@calebboyd calebboyd force-pushed the dev branch 2 times, most recently from 6ceaed1 to 64a6efa Compare March 15, 2026 19:30
@calebboyd calebboyd force-pushed the dev branch 2 times, most recently from 23649ed to 09e1ba4 Compare March 15, 2026 21:36
@calebboyd calebboyd merged commit ab3ea7d into main Mar 16, 2026
4 checks passed
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 4.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant