Repository navigation
feat: make admission and shutdown safe (Phase 2) #29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
heynemann
merged 13 commits into
phase-1-performance-baseline
from
phase-2-lifecycle-safety
Aug 8, 2026
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
24a721c
test: characterize batching engine before replacing rill
heynemann 5d7c3bc
refactor: replace rill with an owned aggregation pipeline
heynemann 9f82fd6
test: enforce the per-batcher goroutine budget
heynemann 519b9ce
feat: own the intake queue and add an admission gate
heynemann aed0ca9
feat: add resumable Shutdown and forward the fx stop context
heynemann 989660c
feat: bound diagnostics and recover processor panics per batch
heynemann 87607b6
docs: record Phase 2 measured outcomes
heynemann d787776
docs: document the Phase 2 lifecycle and admission APIs in the README
heynemann b2127ea
fix: address Phase 2 review findings
heynemann 95e345e
fix: key thresholds and CI to the module's Go version
heynemann 53aafcd
fix: remove unused gate accessor and fix README shutdown example
heynemann 67169bf
fix: correct the documented accepted-work bound
heynemann 875e0d1
docs: describe both Enqueue context errors
heynemann File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,21 +1,18 @@ | ||
| module github.com/NSXBet/batcher | ||
|
|
||
| go 1.22.4 | ||
| go 1.25.0 | ||
|
|
||
| require ( | ||
| github.com/destel/rill v0.1.2 | ||
| github.com/stretchr/testify v1.9.0 | ||
| go.uber.org/atomic v1.11.0 | ||
| github.com/stretchr/testify v1.11.1 | ||
| go.uber.org/fx v1.24.0 | ||
| go.uber.org/zap v1.27.0 | ||
| golang.design/x/chann v0.1.2 | ||
| go.uber.org/zap v1.28.0 | ||
| ) | ||
|
|
||
| require ( | ||
| github.com/davecgh/go-spew v1.1.1 // indirect | ||
| github.com/pmezard/go-difflib v1.0.0 // indirect | ||
| go.uber.org/dig v1.19.0 // indirect | ||
| go.uber.org/multierr v1.10.0 // indirect | ||
| golang.org/x/sys v0.0.0-20220412211240-33da011f77ad // indirect | ||
| go.uber.org/multierr v1.11.0 // indirect | ||
| golang.org/x/sys v0.46.0 // indirect | ||
| gopkg.in/yaml.v3 v3.0.1 // indirect | ||
| ) |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.