First-Principles Systems Design

Engineered From CPU Cache Lines Down to NVMe Queues

Legacy brokers hit hard ceilings from global locks, GC pauses, and random I/O amplification. AetherMQ re-engineers every microsecond from socket sniff to NVMe sector alignment.

INGRESS · 9 PROTOCOLS GA Auto-Sniff :5672 · TLS 1.3 · UDS AMQP 0-9-1 (RabbitMQ) AMQP 1.0 + JMS 2.0 / 3.0 MQTT 3.1.1 / 5.0 + WS IBM MQ FAP (:1414) + REST Kafka Wire (:9092) AetherWire v1 (16B LE) OpenWire (:61616) / STOMP AI MCP (15 Tools) + SSE CORE · SHARED-NOTHING THREAD-PER-CORE Core-pinned !Send State Machines · Zero Global Locks · Lock-Free SPSC Mesh SHARD 0 (CPU Core 0) • 64B QueueIndex + Priority 0..9 • MQTT Trie / AMQP RCU Graph • Zero-Lock C-ABI Plugin Chain SHARD 1 (CPU Core 1) • 64B QueueIndex + Priority 0..9 • MQTT Trie / AMQP RCU Graph • Zero-Lock C-ABI Plugin Chain SHARD 2 (CPU Core 2) • 64B QueueIndex + Priority 0..9 • MQTT Trie / AMQP RCU Graph • Zero-Lock C-ABI Plugin Chain SHARD 3 (CPU Core 3) • 64B QueueIndex + Priority 0..9 • MQTT Trie / AMQP RCU Graph • Zero-Lock C-ABI Plugin Chain ZERO-OVERHEAD GOVERNANCE & ISOLATED CONTROL PLANE 64-bit Hook Mask · 5-Role RBAC · 20-Bucket Log2 (<5ns) · PG Audit & Rollback DUAL-MODE WAL & COLD SPILL • Linux io_uring + O_DIRECT DMA • Adaptive Group Commit (RPO=0) • .qidx Cold Spill (O(1) RAM) • CRC32C Checksum + Cascading GC • Multi-Profile Physical Disk Pools MULTI-RAFT HA & XA 2PC • Group 0 Metadata + N Shard-Groups • quorum-ram / quorum-disk RPO=0 • 186 ms SIGKILL Auto Failover • XA 2PC + RocketMQ Half-Message • Heuristic Admin Resolution

1. Shared-Nothing Thread-per-Core Mesh

Each shard pins to a CPU core with core-local !Send queue state and routing graphs. Inter-core hops traverse bounded lock-free SPSC rings. On Linux, per-shard SO_REUSEPORT eliminates accept-queue contention.

2. Sequential Physical WAL × Logical Queue Index

All queues share sequential 64 MiB WAL segments protected by CRC32C and 4 KiB alignment, coalescing concurrent publishes into microsecond Group Commits. Multicast fanout writes the WAL once and fans out 64B index slots.

3. Tiered Cold Offload & Cascading Segment GC

Hot payloads stay strictly capped by --hot-cache-mb; excess backlog spills to WAL segments without growing RSS. Sealed segments track live counts and reclaim disk space immediately upon ACK drain or Purge.

4. Zero-Alloc Lock-Free Plugin Chain

A 64-bit atomic hook mask skips unhooked stages in a single relaxed load. Active plugins use thread-local scratch buffers, generation-cached immutable chains (zero RwLock), and queue_patterns allowlists.

5. Safe-Rust MQTT 5.0 Segment Trie Engine

Built with #![forbid(unsafe_code)], routing in O(topic depth) with spec-compliant $SYS isolation, atomic $share round-robin groups, 0x8E session takeover, and idle buffer shrinking (~2 KiB/conn).

6. Strict Data-Plane / Control-Plane Isolation

20-bucket Log2 atomic latency histograms (<5ns), host OS telemetry, Console queries, and PostgreSQL audit/version persistence run completely off the hot path so observability never perturbs tail latency.

Explore Commercial Console & TUI →