Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reworked fan in logic. We do not hold locks during IO, either read or write. On scenarios where we can get behind mostly due to fan-in from fast producers we detect and create a stall channel. Once we catch up we close the stall channel to release all blocked producers. Producers have an upper bound on how long they will be stalled. Signed-off-by: Derek Collison <derek@nats.io>
- Loading branch information
1 parent
04d824c
commit 0696d5a
Showing
2 changed files
with
46 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters