karafka
Installation
SKILL.md
Karafka
Apache Kafka for Ruby with high-performance multi-threaded processing.
Iron Laws
- Process in batches when possible - Better throughput
- Handle dead letter queues - Don't lose failed messages
- Monitor lag and throughput - Key operational metrics
- Use idempotent consumers - Safe to reprocess
- Commit offsets after processing - At-least-once delivery
- Partition by business key - Preserve ordering
Installation
gem 'karafka', '~> 2.5'
gem 'karafka-web' # For Web UI