Course lesson 21 · Working with Queues

Creating & Using Queues

One study unit · Read, recall, then practice · Original video 00:08:50

The instructor creates a staging queue, configures the data-service Worker as its consumer, and implements a queue handler that logs message bodies. Sending test messages in the dashboard makes batching visible: one handler invocation can contain several messages. Pausing and resuming delivery then demonstrates that accepting messages and delivering them to a consumer are separate operations.

Primary source: course video 21 · Supplied English subtitles · 00:08:50.

Understand the idea

What the course does

  1. Create a queue with a staging name in the dashboard.
  2. Add a consumer entry to the data service’s Wrangler configuration using that queue name.
  3. Implement an asynchronous queue handler and iterate through the batch to log each body.
  4. Deploy the data service and open its real-time logs.
  5. Send “Hello World” messages and observe one invocation containing multiple messages.
  6. Pause delivery, send more messages, inspect the pending queue, then resume and observe it drain.

Watch for

Recall before revealing

What is the difference between a message and a batch in this lesson?

Reveal the explanation

A message contains one event body; a batch groups several messages delivered together to one queue-handler invocation.

Try it

Using a test queue, send several distinguishable messages while delivery is paused, then resume it and compare invocation logs with individual message logs.

Check your result

You can identify both the batch-level trigger and each message processed within it, and explain why the message count need not equal the invocation count.

Practice prompts and answer checks are added teaching material. Answer from memory first, then compare and explain any difference.

Rewatch only what you need

Open this lesson in your original course library and seek to the times below. Videos are not hosted on this site.

Companion primary documentation: Queues delivery guarantees. For recorded API names, commands, limits, and prices, check the version you use.

← Previous   Next →