Skip to content

Conversation

@edgurgel
Copy link
Member

What kind of change does this PR introduce?

Apply rate limits to CdcRls subscription creation similar to how we do it for RLS checks on the Authorization module.

This not only avoids unnecessary RPC calls but also it gives time for the tenant database to reset their DB connection to then start accepting subscriptions again.

I've also decreased the rate counter idle shutdown to 10 minutes as 15 minutes is a looong time if there is low activity coming from a tenant.

Additional context

Add any other context or screenshots.

@edgurgel edgurgel changed the title Fix/subscriptions rate limit fix: subscriptions error rate limit Oct 30, 2025
@edgurgel edgurgel force-pushed the fix/subscriptions-rate-limit branch from 42b849b to 3bf7a2a Compare October 30, 2025 07:26
@coveralls
Copy link

coveralls commented Oct 30, 2025

Coverage Status

coverage: 87.115% (+0.04%) from 87.079%
when pulling 9d4c6b9 on fix/subscriptions-rate-limit
into d7bacb8 on main.

@blacksmith-sh

This comment has been minimized.

@edgurgel edgurgel force-pushed the fix/subscriptions-rate-limit branch from 5ec0559 to 59a2ece Compare October 31, 2025 03:28
@edgurgel edgurgel requested a review from filipecabaco October 31, 2025 03:31
@blacksmith-sh

This comment has been minimized.

@edgurgel edgurgel merged commit ee66783 into main Oct 31, 2025
5 of 8 checks passed
@edgurgel edgurgel deleted the fix/subscriptions-rate-limit branch October 31, 2025 06:32
@kiwicopple
Copy link
Member

🎉 This PR is included in version 2.58.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants