This chapter is an outline. The curriculum, learning objectives and
structure are settled; the prose, diagrams and code are still being written.
What is below is the plan for the chapter, not the chapter.
Lab 03 — Watch visibility timeout
Goal
See a message go invisible and come back, and watch the timer decide.
Setup
To be written — CLI commands and an IaC equivalent for every resource, all prefixed sqs-course-.
Steps
- Set the queue visibility timeout to 30 seconds
- Send one message
- Receive it and do not delete
- Poll
GetQueueAttributesevery 5 s and watchNotVisiblego 0→1→0 andVisiblego 1→0→1 - Repeat, calling
ChangeMessageVisibility(60)at t=20 — observe the extension - Repeat, calling
ChangeMessageVisibility(0)— observe immediate return
What you should observe
- The message never left the queue; only its visibility changed
- Extension resets the timer from now, not from the original receive
- Visibility 0 is the fail-fast retry
Why it happened
To be written — ties each observation back to the mechanism in 08 — Visibility Timeout.
Experiments to try
To be written — deliberate variations that change the outcome.
Teardown
To be written — every resource created above, in dependency order.
← Back to: 29 — Hands-on Labs