Build the bounded, blocking, closable queue between Relaybox's receivers and senders: mutexes, condition variables, backpressure, shutdown, timeouts and batches.
Blocking queue
A bounded FIFO shared by many threads: push waits when full, pop waits when empty, close wakes everyone.
Timeouts and batches
push and pop with deadlines, and popping up to n messages at once.
Priority lanes
Paying customers' webhooks jump the queue, without starving everyone else.