Expedia Group Tech
Read post

Colocating Input Partitions with Kafka Streams When Consuming Multiple Topics: Sub-Topology Matters!

Explores a production issue where Kafka Streams failed to colocate matching partitions from two topics on the same instance, breaking cache locality. The root cause was implicit creation of separate sub-topologies for each topic. The solution involved replacing a local Guava cache with a shared Kafka Streams state store, which unified the sub-topologies and enforced partition colocation. This architectural change ensured identical keys from both topics were processed by the same instance, significantly reducing redundant external API calls and improving performance.

    #kafka#distributed-systems
Nov 11, 2025•4m read time•From medium.com
Post cover image
Table of contents
Expedia Group Technology — EngineeringUnderstanding how sub-topology design influences partition co-locationGet Vishal Sharma’s stories in your inbox
1.6K Impressions
Expedia Group Tech's image
Expedia Group Tech

Expedia's resource offers insights, tutorials, and resources for travelers and vacation planners. Re...

9 Followers

•

16 Upvotes

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard