BufferQ
Buffers short-lived real-time messages without an external broker.
- Year
- 2026
- Status
- In progress
- Stack
- Go, gRPC, REST, YAML, React, Vite
- Links
- Source code
Context
BufferQ is a lightweight in-memory broker for temporary queues that do not require persistence or Kafka-scale infrastructure.
The problem
Telemetry, notifications, logs, and game events often need temporary buffering but do not justify Kafka or RabbitMQ.
Architecture
A REST and gRPC server shares a queue manager that routes requests to named ring buffers with configurable capacities and overflow policies.
Decisions and trade-offs
- Ring buffer storage
- Fixed-capacity head and tail indices provide constant-time enqueue and dequeue operations, with bounded memory instead of unbounded data.
- Configurable overflow policies
- Reject, drop-oldest, drop-newest, and blocking policies let each queue choose its failure behaviour.
Implementation
REST and gRPC APIs, named queues, metrics counters, YAML configuration, a bounded blocking publish timeout, benchmarks, and a React observability dashboard.
Outcomes and lessons
README benchmark reports roughly 33 million raw ring-buffer operations per second and 6.3 million managed queue operations per second.