OCI Streaming: Create a Stream, Publish Messages, and Consume with a Cursor
Beginner · 30 minutes · 4 tasks, checked automatically · 100 points
In this beginner lab you will explore OCI Streaming using a local emulator. You will create a Stream (a managed Kafka-compatible message channel), publish text messages to it, and then consume those messages back using a cursor. By the end you will understand the full produce-consume lifecycle of OCI Streaming without touching a real cloud account.
What you’ll learn
- Create an OCI Stream with a defined number of partitions using the OCI CLI
- Publish Base64-encoded messages to the Stream using the streaming data-plane API
- Create a cursor and consume messages from the Stream to verify end-to-end delivery
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: streaming
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: streaming, messaging, kafka, oci, cursor, produce, consume, base64, local-emulator
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 Queue: Create, Send, and Receive Messages
- 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