OCI Queue: Create, Send, and Receive Messages
Beginner · 30 minutes · 4 tasks, checked automatically · 100 points
In this foundational lab you will use the OCI Queue service running inside a local emulator to learn the full message lifecycle. You will create a queue, send messages to it, peek at them, and then consume them — all without touching a real cloud account. By the end you will understand how producer-consumer messaging works on OCI Queue and be comfortable using the CLI to interact with it.
What you’ll learn
- Create an OCI Queue using the CLI against the local emulator
- Put multiple messages onto the queue using the Queue data-plane API
- Retrieve (consume) messages from the queue and confirm the queue is drained
How this lab works
- Start the lab: One click starts an emulated cloud on your computer, with the cloud’s own CLI ready: no account and no bill.
- Work through 4 tasks: Each task says what to build or fix. You do it yourself, in a real terminal, with hints when you get stuck.
- Check your work: Check my work reads the emulated cloud’s resources and says, task by task, what passed and what to fix.
- Finish and keep going: 100 points, your progress saved, and the next lab to try.
What it runs on
- Runs: An emulated cloud on your computer: no cloud account, no bill
- Cloud: OCI
- Services: queue
What you need
- A free LearnXops account
- The LearnXops desktop app for macOS, Windows or Linux
- Docker Desktop (or Podman / Rancher Desktop) installed and running
- A OCI sandbox created in the Local Cloud Playground
Topics: oci, queue, messaging, cli, producer-consumer, local-emulator, floci
Create a free account to start this lab.
Keep going
- Pub/Sub Fundamentals: Topics, Subscriptions, and Messages
- Send and Receive Messages with an Azure Storage Queue
- OCI Streaming: Create a Stream, Publish Messages, and Consume with a Cursor
- Catch Failed Messages with an SQS Dead-Letter Queue and Redrive Policy
- Queue Background Work with Cloud Tasks and Dispatch to an HTTP Target
- Publish and Subscribe with a Service Bus Topic and Multiple Filtered Subscriptions