liveBook · Manning

Queue

A queue is an ordered collection that holds items for retrieval or processing, typically removing them in the order they were added.

How 24 Manning books explain it

Grokking Data Structures

A queue is a data structure in which elements are retrieved in the same order in which they were added.

How it is used
Processes items in arrival order for task tracking, request handling, scheduling, and algorithms.
How deep it goes
Defines FIFO and queue operations, then works through linked-list and circular-array implementations, including wraparound and empty/full handling.
Examples
Uses checkout lines, bug reports, web requests, printer jobs, and circular-array enqueue code.
What you can do after
Build it from scratch with a linked list or fixed-capacity circular array, choosing according to capacity and implementation tradeoffs.

Read how Grokking Data Structures explains queue →

Just Use Postgres!

FIFO ordering delivers items in the same order in which they were added.

How it is used
Implements producer-consumer message passing with FIFO retrieval and explicit processing states.
How deep it goes
Explains table design, enqueue/dequeue functions, locking, transactions, completion, and stalled-message recovery.
Examples
Uses PostgreSQL schema and PL/pgSQL listings for enqueue, dequeue, transactional consumption, and completion.
What you can do after
Operate/configure a PostgreSQL-backed queue with concurrent consumers and explicit message completion.

Read how Just Use Postgres! explains queue →

Grokking Simplicity

A book-specific JavaScript function that creates an encapsulated queue and returns an operation for submitting work to it.

How it is used
Coordinates asynchronous work that shares a resource, preserving click order for DOM updates.
How deep it goes
Defines FIFO behavior, builds an encapsulated queue, generalizes its worker and completion callback, and contrasts dropping behavior.
Examples
Uses shopping-cart totals, DOM updates, rapid clicks, and queued document saves.
What you can do after
Builds a reusable JavaScript queue that serializes asynchronous work and a dropping queue that bounds stale pending work.

Read how Grokking Simplicity explains queue →

Kubernetes for Developers

A task queue is an ordered collection of pending tasks awaiting processing by workers.

How it is used
Moves slow work out of HTTP requests so workers can process it in the background.
How deep it goes
Builds a Redis-backed FIFO queue with producer and worker code, then contrasts continuous processing with static Job queues.
Examples
Uses thumbnail generation and a Python pi calculator with queued iteration counts and two worker Pods.
What you can do after
Build it from scratch using Redis and Python, then operate its workers through a Kubernetes Deployment.

Read how Kubernetes for Developers explains queue →

Classic Computer Science Problems in Swift: Essential techniques for practicing programmers

A queue is a first-in-first-out data structure in which the earliest inserted item is removed first.

How it is used
Supplies the frontier ordering that makes breadth-first search check nearby states first.
How deep it goes
Defines FIFO and implements a generic queue with Swift Array operations, without analyzing their performance.
Examples
Uses a restroom line, a train route, and a maze to illustrate arrival order and search order.
What you can do after
Build it from scratch as a Swift Array-backed queue and use it as a breadth-first search frontier.

Read how Classic Computer Science Problems in Swift: Essential techniques for practicing programmers explains queue →

Python Concurrency with asyncio

A queue is a data structure that holds items for processing in an ordered sequence, typically first in first out.

How it is used
Coordinates FIFO work distribution, background processing, and bounded concurrency in asynchronous applications.
How deep it goes
Defines FIFO behavior and demonstrates asyncio workers, bounded queues, coroutine methods, and web integration.
Examples
Uses supermarket checkout, variable product times, bounded queues, and aiohttp order processing as concrete examples.
What you can do after
Build it with asyncio.Queue, worker tasks, coroutine methods, and aiohttp background processing.

Read how Python Concurrency with asyncio explains queue →

Grokking Concurrency

A FIFO is a first-in, first-out communication mechanism in which data is processed in the order it arrives.

How it is used
Distributes incoming tasks to available worker threads and supports asynchronous exchange between threads or processes.
How deep it goes
Explains FIFO task retrieval and illustrates Python worker loops, without detailing the queue’s internal implementation.
Examples
Shows four Python workers processing ten numbered queue items and a thread pool retrieving callback tasks.
What you can do after
Apply it via Python `queue.Queue` to hand incoming tasks to reusable worker threads.

Read how Grokking Concurrency explains queue →

Amazon Web Services in Action, Third Edition: An in-depth guide to AWS

A FIFO queue is a message queue that preserves message order and provides duplicate-message detection.

How it is used
Buffers asynchronous work between producers and consumers, with FIFO queues offered when message order matters.
How deep it goes
Defines FIFO ordering and duplicate detection, then weighs cost and throughput; stops short of FIFO configuration and deduplication mechanics.
Examples
Uses a Node.js URL-to-PNG producer and worker that exchange a message and store the resulting screenshot in S3.
What you can do after
Evaluate/understand it: decide whether guaranteed order justifies a FIFO queue’s higher price and stated throughput limit.

Read how Amazon Web Services in Action, Third Edition: An in-depth guide to AWS explains queue →

Latency

A FIFO queue is an ordered data structure in which the element added earliest is removed first.

How it is used
Holds temporary work in FIFO order and provides the insertion order used by a cache replacement policy.
How deep it goes
Builds a bounded array queue, then develops a wait-free single-producer, single-consumer version using atomic indexes and memory ordering.
Examples
Uses a fixed-size Rust array queue, an SPSC benchmark, and a SIEVE cache-eviction trace.
What you can do after
Build it from scratch as a bounded FIFO queue and extend it for one producer and one consumer.

Read how Latency explains queue →

Learn Docker in a Month of Lunches, Second Edition

A message queue technology is software that provides queues and related mechanisms for storing and delivering messages between application components.

How it is used
Decouples application components to improve performance, scalability, and feature delivery without downtime.
How deep it goes
Explains asynchronous delivery, acknowledgments, Docker setup, publish-subscribe commands, and application integration.
Examples
Uses Redis ping messages, channel subscriptions, NATS subjects, and a to-do application that publishes new-item events.
What you can do after
Operate/configure Redis and NATS containers, publish messages, subscribe to channels or subjects, and verify delivery.

Read how Learn Docker in a Month of Lunches, Second Edition explains queue →

Bootstrapping Microservices, Second Edition: With Docker, Kubernetes, GitHub Actions, and Terraform

A RabbitMQ queue is a buffer that stores messages until consumers retrieve them.

How it is used
Decouples microservices by buffering indirect messages between publishers and consumers.
How deep it goes
Explains queue addressing, assertion, publishing, consuming, acknowledgment, payload parsing, and failure recovery.
Examples
Uses a viewed queue, video-streaming publisher, history consumer, JSON payload, and Docker Compose project.
What you can do after
Builds a one-to-one message flow that publishes, consumes, parses, persists, and acknowledges RabbitMQ messages.

Read how Bootstrapping Microservices, Second Edition: With Docker, Kubernetes, GitHub Actions, and Terraform explains queue →

Fabulous Adventures in Data Structures and Algorithms

A queue is a first-in, first-out data structure supporting insertion at one end and removal at the other.

How it is used
Models first-in, first-out access while developing immutable data structures from stacks and linked lists.
How deep it goes
Develops the interface, two-stack representation, empty cases, persistence, and observable examples, but does not provide detailed complexity analysis.
Examples
Uses C# interface and implementation listings plus successive queue values [10, 20, 30], [20, 30], [30], and [].
What you can do after
Build an immutable queue in C# using two immutable stacks and persistent enqueue and dequeue operations.

Read how Fabulous Adventures in Data Structures and Algorithms explains queue →

Go in Practice, Second Edition

A queue is a data structure that removes elements in the order they were inserted.

How it is used
Uses queues to demonstrate generating type-safe Go collections for arbitrary element types.
How deep it goes
Explains FIFO operations and slice mechanics, then stops short of advanced queue behavior or performance analysis.
Examples
Demonstrates generated MyInt queues, go:generate directives, command execution, and FIFO output.
What you can do after
Build it from scratch as a slice-backed queue or generate typed variants with go:generate and text/template.

Read how Go in Practice, Second Edition explains queue →

Build and Orchestrator in Go (From Scratch)

A queue is a data structure that stores items for processing in an order determined by their insertion sequence.

How it is used
Coordinates incoming tasks between a manager and worker execution in FIFO order.
How deep it goes
Defines FIFO behavior and Enqueue, Dequeue, and Len operations, while reusing rather than implementing the queue itself.
Examples
Uses a Go Worker struct and an HTTP start-task handler that decodes JSON before queueing a task.
What you can do after
Apply it via a queue interface to hold and process worker tasks in insertion order.

Read how Build and Orchestrator in Go (From Scratch) explains queue →

Optimization Algorithms: AI techniques for design, planning, and control problems

A first-in, first-out data structure in which the earliest inserted element is removed first.

How it is used
Supports breadth-first search by ordering states for layerwise graph exploration.
How deep it goes
Defines FIFO behavior and demonstrates dequeue-enqueue steps, but stops short of a standalone queue implementation.
Examples
Uses BFS traversal of an 8-puzzle and contrasts FIFO ordering with age-based survivor selection.
What you can do after
Apply it via breadth-first search to manage pending nodes, avoid repeated states, and reconstruct routes.

Read how Optimization Algorithms: AI techniques for design, planning, and control problems explains queue →

Learn Go with Pocket-Sized Projects

First-in-first-out eviction removes entries from a cache in the order in which they were inserted, evicting the oldest entry first.

How it is used
Uses insertion order to implement oldest-entry eviction in a bounded cache.
How deep it goes
Explains queue operations through cache helpers and tests, while stopping short of general queue abstractions.
Examples
Demonstrates a generic Go cache whose update requeues key 1 and whose fourth insertion evicts key 2.
What you can do after
Build it from scratch as a chronological slice supporting insertion, arbitrary removal, update requeueing, and oldest-key eviction.

Read how Learn Go with Pocket-Sized Projects explains queue →

Data Pipelines with Apache Airflow, Second Edition

A queue is an ordered data structure from which work items are retrieved for processing.

How it is used
Triggers Airflow DAGs from external messages and routes CeleryExecutor tasks to workers with selected dependency environments.
How deep it goes
Explains queue-trigger configuration, message filtering, asset scheduling, task routing, and worker trade-offs without detailing queue internals.
Examples
Uses bank transactions, supermarket upload events, Kafka topics, message filters, and separate Celery workers as concrete examples.
What you can do after
Operate/configure Airflow workflows that react to Kafka messages and assign tasks to selected CeleryExecutor queues.

Read how Data Pipelines with Apache Airflow, Second Edition explains queue →

Grokking AI Algorithms, Second Edition

A queue is a data structure whose elements are removed in the order in which they were added.

How it is used
Supports breadth-first search by preserving level order while nodes wait for processing.
How deep it goes
Defines FIFO behavior and traces enqueueing, dequeueing, visitation, parent links, and termination in a maze search.
Examples
Uses a maze, root node, directional neighbors, expanding search levels, and a deque-based Python implementation.
What you can do after
Apply it via a deque to process BFS nodes in FIFO order and reconstruct a discovered maze path through parent links.

Read how Grokking AI Algorithms, Second Edition explains queue →

Learn Concurrent Programming with Go

A queue is a data structure that stores elements in an ordered sequence for removal according to a queueing policy, typically first in, first out.

How it is used
Buffers messages between concurrent senders and receivers and distributes variable workloads among worker goroutines.
How deep it goes
Explains FIFO semantics, buffer protection, blocking conditions, and bounded workload behavior without detailing queue algorithms.
Examples
Uses a linked-list channel buffer, an HTTP connection work queue, and a server that returns HTTP 429 when workers are unavailable.
What you can do after
Build a bounded concurrent buffer or apply a Go channel as a work queue for HTTP worker pools.

Read how Learn Concurrent Programming with Go explains queue →

Deep Learning with PyTorch, Second Edition

A first-in, first-out structure that stores incoming work items until a worker processes them.

How it is used
Coordinates incoming inference requests with background model workers to support batching and concurrent API handling.
How deep it goes
Explains batching thresholds, thread safety, worker interaction, and shutdown lifecycle, but not queue implementation internals.
Examples
Uses a restaurant-order analogy, queue.Queue setup, FastAPI requests, and concurrent curl calls as concrete examples.
What you can do after
Operate/configure it through Python’s queue.Queue to connect an inference endpoint with a batching model worker.

Read how Deep Learning with PyTorch, Second Edition explains queue →

Kafka for Architects

A queue is an ordered messaging destination in which messages wait for delivery to consumers.

How it is used
Uses queues for point-to-point delivery when one consumer must process each message.
How deep it goes
Explains delivery semantics, routing architectures, consumer groups, and subscription modes across messaging systems.
Examples
Illustrates queues through push notifications, worker task assignments, RabbitMQ routing, and Pulsar subscription modes.
What you can do after
Evaluate messaging platforms by delivery semantics, routing control, consumer behavior, and workload requirements.

Read how Kafka for Architects explains queue →

Get Programming: Learn to code with Python

A queue is a data structure in which elements are added at one end and removed from the other, so the earliest added element is removed first.

How it is used
Models waiting lines and demonstrates how lists can implement more specific data-structure behavior.
How deep it goes
Defines FIFO behavior, demonstrates list operations, and extends the idea to designing a queue class.
Examples
Uses a grocery-store line and a Python list containing Ana, Bob, Claire, and Dave.
What you can do after
Build it from scratch by implementing a queue class with add, remove, size, display, and batch-operation methods.

Read how Get Programming: Learn to code with Python explains queue →

Quarkus in Action

A queue is an ordered messaging destination that stores messages until consumers receive them.

How it is used
Connects Quarkus reactive messaging channels to RabbitMQ queues for asynchronous invoice delivery.
How deep it goes
Defines queue-based delivery and demonstrates extension, channel, naming, and consumer configuration without detailing broker internals.
Examples
Uses reservation invoices, the invoices exchange, the invoices queue, and BillingService consumption.
What you can do after
Apply it via Quarkus and SmallRye Reactive Messaging to produce and consume RabbitMQ messages.

Read how Quarkus in Action explains queue →

Microsoft Azure in Action

A queue is a first-in-first-out data structure in which items are added at the back and removed from the front.

How it is used
Buffers incoming book orders before processing so producers do not overwhelm order handling.
How deep it goes
Explains FIFO behavior, message size, capacity, creation, insertion, retrieval, and access, but stops short of processing internals.
Examples
Uses Banning Books orders, a banned book order message, PowerShell commands, and an Azure Queue Storage flow diagram.
What you can do after
Operate/configure Azure Queue Storage by creating a queue, adding a message, and retrieving queued data with PowerShell.

Read how Microsoft Azure in Action explains queue →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.