Decouple Timer triggering from general stream processing #4931
Labels
area/performance
Marks an issue as performance related
kind/toil
Categorizes an issue or PR as general maintenance, i.e. cleanup, refactoring, etc.
scope/broker
Marks an issue or PR to appear in the broker section of the changelog
Description
Found at the Chaos day https://github.com/zeebe-io/zeebe-chaos/edit/master/chaos-days/2020-07-09/summary.md
We currently have the issue that we trigger timers in the same actor as the stream processing runs. This means we interrupt the normal processing to write new commands. This should be decoupled to streamline the processing. I can imagine that we can trigger the timers and also other things like timeout jobs, in a separate actor, which then writes to the dispatcher.
This would mean the stream processor can just continue with consuming new records. I think this will make the throughput more stable in case we have more timers. This cam also be done for jobs or messages etc.
The text was updated successfully, but these errors were encountered: