Expand description
Streaming integrations (Kafka, Redis Streams, NATS). Streaming Integrations — FR-011
External event stream consumption bridges for Kafka, Redis Streams, and NATS.
Each provider implements the StreamConsumer trait, which bridges external
events into K2K messages for GPU actor processing.
§Architecture
External Stream Bridge GPU Actors
┌─────────────┐ ┌──────────────┐ ┌──────────────────┐
│ Kafka Topic │──►│ KafkaConsumer│──►│ K2K → Actor Queue │
│ Redis XREAD │──►│ RedisConsumer│──►│ K2K → Actor Queue │
│ NATS Subject│──►│ NatsConsumer │──►│ K2K → Actor Queue │
└─────────────┘ └──────────────┘ └──────────────────┘
Backpressure: pause consumption when actors overloadedStructs§
- InMemory
Consumer - In-memory stream consumer for testing the bridge without external dependencies.
- Kafka
Config - Kafka consumer configuration.
- Nats
Config - NATS consumer configuration.
- Redis
Stream Config - Redis Streams consumer configuration.
- Stream
Consumer Config - Configuration for a stream consumer.
- Stream
Consumer Metrics - Metrics for a stream consumer.
- Stream
Message - A message consumed from an external stream.
Enums§
- Commit
Strategy - When to commit offsets.
- Stream
Error - Errors from stream operations.
- Stream
Offset - Offset within a stream (provider-specific).
Traits§
- Stream
Consumer - Trait for stream consumer implementations.