async-dedup-race-in-streaming-pipelines
CommunityPrevent duplicates in streaming pipelines
AuthorDavidTeju
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Streaming pipelines often emit multiple results for the same dedup key when per-item async enrichment is performed after a pre-check, causing invisible or duplicate entries in UI and incorrect counts.
Core Features & Use Cases
- Synchronous dedup reservation: reserve the slot before spawning async work to prevent duplicates.
- Await all async tasks before done: avoid premature completion by waiting on Promise.all for all in-flight work.
- Cache shared resources: reuse I/O results across concurrent requests to reduce redundant work.
- Use cases include SSE/WebSocket streaming dashboards, real-time analytics pipelines, and UI lists that require strict one-emission-per-key guarantees.
Quick Start
Run the async dedup race fixes on your streaming pipeline to ensure that each dedup key yields at most one result and that all async processing completes before signaling pipeline completion.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: async-dedup-race-in-streaming-pipelines Download link: https://github.com/DavidTeju/shared-skills/archive/main.zip#async-dedup-race-in-streaming-pipelines Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.