← All primitives

Deque

selected P1 /v1/deques

Why it matters: Supports bounded producer/consumer buffers, work-stealing, and algorithms that need both FIFO and LIFO access.

Durable double-ended collection with atomic push and pop operations at either end.

API endpoints

MethodPathDescription
POST/v1/dequesCreate a deque
POST/v1/deques/:id/frontPush an item to the front
POST/v1/deques/:id/backPush an item to the back
POST/v1/deques/:id/pop-frontAtomically pop the front item
POST/v1/deques/:id/pop-backAtomically pop the back item