A producer emits unordered events; a consumer collects them and, every 100 events, sorts the batch and prints it.
A producer emits unordered events; a consumer collects them and, every 100 events, sorts the batch and prints it.
Opens with the full question.