Hasty Briefsbeta

Bilingual

<antirez>

8 hours ago
  • Disque is a new message broker system developed by antirez (Salvatore Sanfilippo), the creator of Redis, as a side project.
  • It originated from the observation that many developers use Redis as a message queue, despite Redis not being optimized for immutable messages.
  • Disque aims to fill the gap between overly simple and overly complex message brokers, offering a 'Redis of messaging' with a low barrier to entry.
  • The system guarantees at-least-once delivery by default, with optional at-most-once semantics per message, using acknowledgments and automatic retries.
  • Disque is a distributed, AP (available and partition-tolerant) system that scales horizontally, even for single-queue scenarios.
  • It sacrifices strict message ordering in favor of best-effort FIFO ordering, using a wall-clock timestamp and incremental ID.
  • Durability is achieved through synchronous replication across nodes, with optional AOF persistence for upgrades or mass reboots.
  • Disque supports delayed jobs, named queues, consumer blocking, and transactional message posting with configurable replication.
  • The codebase is a fork of Redis with Redis-specific parts removed, allowing Disque to diverge as needed while reusing Redis's networking and protocol infrastructure.
  • Currently, most features are implemented (except AOF persistence), and the source code is available on GitHub.