Skip to content

Refactor shard_consumer and handle expired iterators#50

Open
FugiTech wants to merge 2 commits intotwitchscience:masterfrom
FugiTech:refactor_consume
Open

Refactor shard_consumer and handle expired iterators#50
FugiTech wants to merge 2 commits intotwitchscience:masterfrom
FugiTech:refactor_consume

Conversation

@FugiTech
Copy link
Copy Markdown

@FugiTech FugiTech commented Nov 25, 2019

This moves fetching records into a goroutine to try and abstract the logic in preparation for enhanced fanout. It also moves the commit loop into a goroutine to try and simplify consume() a bit. Line 248 also adds handling for expired iterators.

FugiTech#1 shows the enhanced fanout changes which rely on this PR. Let me know if you'd prefer to review them together.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant