Skip to content

Concepts ​

This chapter explains how MortarMQ works and why it is built that way. Read it once after the quick start, then return to individual pages when a behaviour surprises you.

Everything here is narrative — no copy-paste commands. For those, see Guides; for exact tables and registries, see Reference.

In this chapter ​

PageWhat it answers
Core conceptsThe message model — topic, partition, group, epoch, credit, quorum, DLQ: what each noun means
ArchitectureWhat the source packages do, which way dependencies point, and where the diagram atlas lives
Message lossUnder exactly what conditions a message can be lost, and the identity that proves it did not
Duplicate deliveryWhen the second copy arrives, and how to make a handler tolerate it
OrderingWhat order is guaranteed, where it stops, and how to design around the boundary
SecurityWhat v0 defends against, what it explicitly does not, and how the token handshake works
GlossaryThe naming rules: magic bytes, the eight epoch-like counters, the ID system

Planned pages ​

These land with the corresponding implementation and will be linked from here when they do:

  • Storage internals — segment format, sparse index, checkpoint replay (the concepts page covers the behaviour; this would cover the bytes)