Stream Partitions, Message Ordering and Offset Handling Under Load
Advanced · 30 minutes · 5 tasks, checked automatically · 100 points
In this advanced lab you will work directly with OCI Streaming to master partition management, guaranteed message ordering within partitions, and precise offset-based consumption. You will create a multi-partition stream, publish ordered message batches to specific partitions, verify ordering guarantees, and implement cursor-based offset replay — all against the local OCI emulator running on your machine. No real cloud account or credentials are needed.
What you’ll learn
- Create a multi-partition OCI Stream and a StreamPool to group it, understanding how partition count affects parallelism and ordering guarantees
- Publish ordered, keyed message batches to specific partitions and verify that per-partition ordering is preserved under concurrent load
- Use TRIM_HORIZON and AT_OFFSET cursors to replay messages from the beginning and from a specific offset, demonstrating precise offset handling
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 5 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, oci, partitions, message-ordering, offset-management, consumer-groups, messaging, local-emulator
Create a free account to start this lab.
Keep going
- Dead-Letter Topics & Retry Policies: Proving Failed Pub/Sub Messages Land Safely
- Produce and Consume from a Managed Kafka Topic with Consumer Groups and Offset Handling
- Stream Events Through Event Hubs with Consumer Groups and Checkpointing
- Dead-Letter Queues and Retry Policies on Service Bus
- SNS Fan-Out Architecture: Filter Policies Across Multiple SQS Queues
- Catch Failed Messages with an SQS Dead-Letter Queue and Redrive Policy