A permit-tracking service publishes status updates on OCI Streaming. All updates for the same permit number must be processed in order, while different permits may run in parallel. How should messages be keyed?
Select an answer to reveal the explanation.
Short Explanation
A shared key is like putting every update for one case folder on the same clerk’s desk so the stack stays in order, while other folders go to other desks in parallel. Keys colocate related messages on one partition for per-key order. Different keys may land on different partitions. Global order for the whole stream means one partition—and its throughput cap.
Full Explanation
OCI Streaming uses message keys to group related messages onto the same partition so they remain ordered with respect to each other. Messages with different keys may be assigned to different partitions and processed in parallel. For ordered updates of one entity (for example permit 123), share that entity’s key. True global order across the entire stream requires a single partition and accepts the resulting throughput limit.