Overview
Parallel Consumer is an open source software to enable fast processing message with less instances
This article is to introduce the performance improvement for parallel consumer.
Work Flow Chart
Explanation:
- Previously to get the available workers, it has to go through all shards and get all workers and fill them out based on certain conditions
- Now, we just to get from an atomic variable and it will be updated when the worker is newly-added / failed / finished
- time improvement : O(n) -> O(1)