Message queue
A FIFO message queue: buffered items with enqueue and dequeue arrows.
| id | queue |
|---|---|
| type | |
| domain | systems |
| requires | tikz, arrows.meta |
| license | CC0-1.0 |
| author | OpenTikZ contributors |
Download
SVG
queue.tex
\documentclass[border=4pt]{standalone}
% --- packages (mirror these in queue.meta.json "requires") ---
\usepackage{tikz}
\usetikzlibrary{arrows.meta}
% --- palette (canonical source: reference/color-palettes/color-palettes.md; light variant) ---
\definecolor{otblue}{HTML}{0072B2}
\definecolor{otorange}{HTML}{E69F00}
\definecolor{otteal}{HTML}{009E73}
\definecolor{otpurple}{HTML}{CC79A7}
\definecolor{otgray}{HTML}{5A5A5A}
\begin{document}
\begin{tikzpicture}[line width=0.9pt, >={Stealth[length=2.4mm]}]
% enqueue arrow
\draw[->, otgray!75] (-0.75,0.6) -- (0.05,0.6);
% buffered messages (FIFO)
\foreach \i in {0,1,2,3}{
\filldraw[draw=otorange!80!black, fill=otorange!22, rounded corners=2pt]
(0.15+\i*0.62,0.2) rectangle (0.7+\i*0.62,1.0);
}
% dequeue arrow
\draw[->, otgray!75] (2.68,0.6) -- (3.48,0.6);
\end{tikzpicture}
\end{document}
Use it
The file compiles on its own (\documentclass{standalone}).
Drop it into your project and \input it, or copy the
tikzpicture into your figure. Colours come from the shared
palette defined in the preamble — edit those named colours, not raw hex.
Graphic content is CC0 1.0 (public domain) — reuse freely, no attribution required.