When a series of rebalance events occurs, this avoids recreating the
strategy from within callbacks entirely (making on_revoke in particular
faster). Instead the strategy is created whenever the first message is
being processed.
There were ideas to create the strategy eagerly before even subscribing
to a topic. However, currently create_with_partitions requires knowledge
of the currently assigned partitions. We would have to deprecate this
argument if we wanted to make this happen.
When a series of rebalance events occurs, this avoids recreating the strategy from within callbacks entirely (making on_revoke in particular faster). Instead the strategy is created whenever the first message is being processed.
There were ideas to create the strategy eagerly before even subscribing to a topic. However, currently create_with_partitions requires knowledge of the currently assigned partitions. We would have to deprecate this argument if we wanted to make this happen.