Sign inSign up free

1124. Every Video Is Encoded Twice

easy 10 XP ~8 minHands-on lab

Encoder workers read jobs from the SQS queue profile-encode. Encoding one video takes up to 3 minutes, and a worker deletes the message when it's done. Every video is being encoded two or three times, by different workers. Also, the idle workers poll in a tight loop, and the SQS bill is mostly empty receives.

Task

  • A message a worker has received stays hidden from other workers for the whole time a job can take, with some margin: at least 3 minutes, and no more than 3 times that.
  • Receives wait up to the maximum (20 seconds) for a message to arrive, instead of returning empty at once.

This machine has an AWS-style account (an emulator: nothing is billed). Your AWS CLI is signed in as the account's administrator.

About this machine

Ubuntu 24.04 with no internet access. You are student with passwordless sudo. The grader checks the final state of the machine, not the commands you typed. Values like names and ports are generated for you.

Part of AWS Hands-On. Next step: Poison Messages Block the Queue

Teaching or writing about this? Embed this lab on your page

TerminalNot started

Your machine is ready to start

A fresh, isolated Ubuntu machine boots in a few seconds with the task already set up.

No account needed: 3 of 3 free tries left. Guest machines last 30 minutes.