--num

An rpk topic consume flag that stops the command after it has read the given number of records.

In more detail

Without it, rpk topic consume keeps waiting for new records forever. The course uses it so every consume command exits cleanly with predictable output.

Example

rpk topic consume events -o 3 --num 2

Related terms

Taught in

References

Certification courses