Query
Data & DatabasesA question asked of the database.
A request for data. Cheap when an index supports it, ruinous when it forces a scan of every row. Which questions you ask should be a design decision, not an accident.
See also Index, N+1, Full table scan
Queue
InfrastructureA durable list of work waiting to be done.
Holds jobs until a worker picks them up, absorbing spikes by delaying work rather than dropping it. Survives crashes, and normally guarantees at-least-once delivery.
See also Worker, At-least-once, Dead letter queue