advancedKafka404 of 469

You add partitions to a live topic. What happens to per-key ordering?

Tests whether you know the key-to-partition mapping is a hash mod partition count, so increasing partition count changes that mapping -- keys that were co-located in one partition can now land in a different one, breaking the ordering guarantee for events produced before and after the resize.

Ready to master this question?

Generate a complete walkthrough — background, the full answer in plain language, a working code example explained line by line, a real-world scenario, common mistakes, and how this same question gets asked in different ways.

Sign in to generate a response

Next Step

← Back to all Spring Boot & Microservices questions