Commit 13281d8
committed
feat(coderd/database/pubsub): add batched pubsub with flush-failure fallback and sender reset
Adds a chatd-specific BatchingPubsub that routes publishes through a
dedicated single-connection sender, coalescing notifications into
single transactions on a 50ms timer. Includes flush-failure fallback
to the shared delegate, automatic sender reset/recreate, expanded
histogram buckets, and focused recovery tests.1 parent d954460 commit 13281d8
13 files changed
Lines changed: 1810 additions & 20 deletions
File tree
- cli
- coderd
- apidoc
- database/pubsub
- codersdk
- docs/reference/api
- scripts/metricsdocgen
- site/src/api
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
768 | 768 | | |
769 | 769 | | |
770 | 770 | | |
| 771 | + | |
771 | 772 | | |
772 | 773 | | |
773 | 774 | | |
774 | 775 | | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
775 | 797 | | |
776 | 798 | | |
777 | 799 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
163 | 166 | | |
164 | 167 | | |
165 | 168 | | |
| |||
777 | 780 | | |
778 | 781 | | |
779 | 782 | | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
780 | 788 | | |
781 | 789 | | |
782 | 790 | | |
| |||
789 | 797 | | |
790 | 798 | | |
791 | 799 | | |
792 | | - | |
| 800 | + | |
793 | 801 | | |
794 | 802 | | |
795 | 803 | | |
| |||
0 commit comments