dual-stream-architecture

Verified·Scanned 2/19/2026

Dual-stream event publishing combining Kafka for durability with Redis Pub/Sub for real-time delivery. Use when building event-driven systems needing both guaranteed delivery and low-latency updates. Triggers on dual stream, event publishing, Kafka Redis, real-time events, pub/sub, streaming architecture.

from clawhub.ai·vb240d44·7.9 KB·0 installs
Scanned from 1.0.0 at b240d44 · Transparency log ↗
$ vett add clawhub.ai/wpank/dual-stream-architecture

Dual-Stream Architecture

Dual-stream event publishing combining Kafka for durability with Redis Pub/Sub for real-time delivery. Publish events to both systems simultaneously for guaranteed delivery and instant updates.

What's Inside

  • Core dual-publisher pattern (Kafka + Redis Pub/Sub)
  • Architecture diagram showing ingester, publisher, and consumer flow
  • Channel naming conventions for event routing
  • Batch publishing for high-throughput scenarios
  • Decision tree for choosing single vs dual stream
  • Edge case handling (Redis down, client mid-stream, backpressure)

When to Use

  • Event-driven systems needing both durability AND real-time
  • WebSocket/SSE backends that push live updates
  • Dashboards showing events as they happen
  • Kafka consumers have lag but users expect instant updates

Installation

npx add https://github.com/wpank/ai/tree/main/skills/realtime/dual-stream-architecture

OpenClaw / Moltbot / Clawbot

npx clawhub@latest install dual-stream-architecture

Manual Installation

Cursor (per-project)

From your project root:

mkdir -p .cursor/skills
cp -r ~/.ai-skills/skills/realtime/dual-stream-architecture .cursor/skills/dual-stream-architecture

Cursor (global)

mkdir -p ~/.cursor/skills
cp -r ~/.ai-skills/skills/realtime/dual-stream-architecture ~/.cursor/skills/dual-stream-architecture

Claude Code (per-project)

From your project root:

mkdir -p .claude/skills
cp -r ~/.ai-skills/skills/realtime/dual-stream-architecture .claude/skills/dual-stream-architecture

Claude Code (global)

mkdir -p ~/.claude/skills
cp -r ~/.ai-skills/skills/realtime/dual-stream-architecture ~/.claude/skills/dual-stream-architecture

Related Skills

  • websocket-hub-patterns — WebSocket gateway patterns
  • resilient-connections — Connection resilience and retry logic
  • backend/service-layer-architecture — Service integration

Part of the Realtime skill category.