Skip to content

Query only required domains by name in AddDomainsStep - #1960

Open
boyan-velinov wants to merge 1 commit into
masterfrom
reduce-domain-requests-in-add-domains-step
Open

boyan-velinov wants to merge 1 commit into
masterfrom
reduce-domain-requests-in-add-domains-step

Conversation

@boyan-velinov

Copy link
Copy Markdown
Contributor

AddDomainsStep listed every domain visible to the deploy user to check which custom domains already exist. For an admin that returns all domains on the landscape, paginated in parallel is done by default, which can trip the Cloud Controller concurrent-request rate limiter at the start of a deployment.

This adds getDomains(List names) to the client facade and uses it to look up only the MTA's custom domains via a name-filtered query. The request count is now bounded by the number of custom domains instead of the user's org visibility. Create/skip behaviour is unchanged.

AddDomainsStep listed every domain visible to the deploy user to decide
which custom domains to create. For an admin that returns all domains on
the landscape, paginated in parallel, which can trip the Cloud Controller
concurrent-request rate limiter at the start of a deployment.

addDomain already looks a domain up by name and only creates it when it is
missing, so the up-front listing was redundant. Drop it and call addDomain
per custom domain instead. The custom domain list is already deduplicated
and has the default domain removed upstream, so behaviour is unchanged.
@boyan-velinov
boyan-velinov force-pushed the reduce-domain-requests-in-add-domains-step branch from 8d0c7ea to f0c1482 Compare November 17, 2026 14:44
@sonarqubecloud

Copy link
Copy Markdown

This branch has not been deployed

No deployments
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