systeminit / si

The System Initiative software
https://systeminit.com
Apache License 2.0
955 stars 67 forks source link

Use one stream for all rebasers #4580

Closed nickgerace closed 6 days ago

nickgerace commented 1 week ago

Description

This PR uses one stream for all rebasers and reduces the number of consumers per change set by 50% (from two to one). This should alleviate some pressure on NATS Jetstream and dramatically reduce the total number of streams (i.e. one stream per change set to one stream for all rebasers).

Additional Changes

Disclaimer

This PR contains an additional commit that should be reverted later. Please read the commit's description for more information.

nickgerace commented 6 days ago

@johnrwatson @sprutton1 @fnichol this is ready, but we need to talk about migration and deployment. The PR might need changes, the real world might need to change, or a little of both.

nickgerace commented 6 days ago

Merging since the plan is set and this code works for it.