Skip to main content
Live. This area is documented as current, user-reliable behavior.

Goal

Understand what a queue costs and where to see usage.

Prerequisites

  • A StackShift account

Workflow

1
Open Queues and choose Usage.
2
Read operations this month, the operations your plan includes, and the price per million above that.
3
See which queues used the most operations.

Operations

  • An operation is each 64 KB written, read or deleted. A message up to 64 KB that is sent, delivered and acked uses about three operations.
  • Larger messages use one operation per 64 KB for each step. Retries add a read each time.
  • Your plan includes a number of operations each month. Above that you pay per million operations. Both figures are shown on the usage screen in USD and NGN.
  • Each queue also shows its operations for the month on the queue page.
  • GET /api/v1/queues/usage?month=YYYY-MM returns total_operations, included_operations, the price per million and a per-queue breakdown.

Expected result

You can estimate a queue’s cost from its message volume.

Limits and error codes

Sizes, rates, retention and the error codes the Queues API returns when a limit is reached.

Queues overview

A Queue holds messages. One part of your app sends them; a consumer takes them off in batches and acks or retries each one.