jonnifyechomq

Overview

One system,
three pillars

Start here: what EchoMQ is, the one wire it owns, and the three surfaces that fall out of it.

EchoMQ is one Valkey-native job system you own end to end. Its keys and its Lua scripts are the protocol; draw the line there and three surfaces fall out of one wire — the Queue that distributes work, the Bus that broadcasts signals and keeps a replayable log, and the Cache that serves reads. This chapter sets the frame: the three pillars, the protocol below the line that makes them polyglot and coherent, the door from Redis Patterns Applied, and what EchoMQ means for the Branded Component System it is the bus of. Three short dives carry it.

The protocol below the line

What makes one wire serve three surfaces, in any language? A line. EchoMQ records its design as a stack: the bottom layers are the protocol — fixed and shared by everything that speaks it; the top layers are the runtime's own. L0 is Valkey itself. L1 is the data layer: which key holds which structure, and the field names. L2 is the set of atomic Lua scripts that move a record between states. L3 is the script executor — load-once, run-by-SHA. L4 is the language API a caller invokes. Pick a layer to read its scope and whether it is shared.

The layer stack · pick a layer

L4 Language API · EchoMQ.Jobs.enqueue, Consumer L3 Script Executor · EVALSHA, the SHA cache — shared below this line — L2 Lua Scripts · the atomic state machine L1 Data Layer · keys, structures, field names L0 Valkey · the engine (external)

The shared line falls between L2 and L3: below it the protocol is fixed and shared; above it, every runtime writes its own code. That single placement is what lets one wire serve three pillars — and what lets any runtime speak it.

The three orienting dives

Three short dives carry the orientation in a what → why → where arc, before the depth chapters teach the mechanism.

Up next — the depth chapters

Read the Protocol next — the substrate the three pillars share. Then take the pillar you need: the Queue, the Bus, the Cache. The Proof chapter shows the system holds. Each closes with a hands-on workshop.

basebuilt

The Protocol

The owned keyspace, the record hash, the Lua layer, immutability.

Isoon

The Queue

Distribute work: lifecycle, lanes, batches, controls, flows.

IIsoon

The Bus

Broadcast signals: events, the event log, consumer groups, time-travel.

IIIsoon

The Cache

Serve reads: cache-aside, single-flight, coherence on the Bus.

The Protocol is ready to read; the three pillars and the Proof chapter are on the build front, each added as its pages land.

References

Sources

Related in this course