Interactive Queries: Remote Queries
Learn how to query state store in distributed Kafka Streams applications.
We'll cover the following
Querying state in distributed apps
Using interactive queries to retrieve data from a state store is straightforward when we only have one application instance. However, when we have multiple application instances, the data is distributed between the state stores of the different instances.
Let’s consider an example scenario: our application has three instances, each consuming one of three partitions. Each message has a single letter key, and the partitioning strategy routes keys A to J to partition 1, keys K to R to partition 2, and keys S to Z to partition 3.
Get hands-on with 1200+ tech skills courses.