Queues
drift.Backbone.Queue(name): FIFO message queues.
Signatures
// Pop takes the next message destructively
Push(body any) error · Pop() (json.RawMessage, error)A message body must be a JSON object. A bare string, number or array is rejected with 400 queue and body required, and a push past the slice's queue_max_depth answers 429.
Push-based or pull-based, not both
Pop is the pull consumer, for a function that drains a queue on its own schedule. The push path is an @atomic queue=<name> worker, which the platform invokes once per message. Use one or the other on a given queue.
A worker receives the inner body, not the envelope.
A queue-triggered function is handed the payload, not the
{id, body, timestamp} envelope that Pop and the CLI's peek return. Read your own fields straight off the payload.A failed invocation is requeued with a retry counter; after three attempts the message moves to <queue>-dlq, an ordinary queue you can drain like any other. The Atomic guide has the poll interval and what counts as a failure.