Skip to content

[SELC-8192] feat: refactor logic for onboarding aggregate#985

Merged
gianmarcoplutino merged 7 commits intomainfrom
feature/SELC-8192
Feb 6, 2026
Merged

[SELC-8192] feat: refactor logic for onboarding aggregate#985
gianmarcoplutino merged 7 commits intomainfrom
feature/SELC-8192

Conversation

@gianmarcoplutino
Copy link
Contributor

@gianmarcoplutino gianmarcoplutino commented Feb 5, 2026

List of Changes

  • refactor logic for onboarding aggregate

Motivation and Context

When onboarding aggregators with many aggregates, the system was spawning too many parallel sub-orchestrators simultaneously. This caused a TooManyRequest error for the DB.
The new batch orchestrator processes aggregates in controlled batches (default 5 at a time) with configurable delays between batches, preventing service overload and improving reliability.

How Has This Been Tested?

the function that invokes the new logic with a set of 100 aggregates has been triggered, the result did not highlight any DB overloads

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 6, 2026

@gianmarcoplutino gianmarcoplutino merged commit 7d5ffdb into main Feb 6, 2026
10 checks passed
@gianmarcoplutino gianmarcoplutino deleted the feature/SELC-8192 branch February 6, 2026 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

functions Changes are related to functions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants