Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
Since the introduction of KStream.toTable() in Kafka 2.6.x, the decision about whether a topology is eligible for optimisation is no longer a simple one, and is related to whether toTable() operations are preceded by key changing operators.
This decision requires expert level knowledge, and there are serious implications associated with getting it wrong in terms of fault tolerance
Some ideas spring to mind around how to guide developers to make the correct decision:
- Topology.describe() could indicate whether this topology is eligible for optimisation
- Topologies could be automatically optimised - note this may have an impact at deployment time, in that an application reset may be required. The developer would need to made aware of this and adjust the deployment plan accordingly