LemmyNet / activitypub-federation-rust

High-level Rust library for the Activitypub protocol
GNU Affero General Public License v3.0
420 stars 45 forks source link

Add failure rate limit for sends #60

Closed Nutomic closed 1 year ago

Nutomic commented 1 year ago

If there are more than 10 failures in the last hour while sending to a specific domain, dont do any further sends. This should help a lot with excessive load due to sending to dead instances, along with https://github.com/LemmyNet/lemmy/pull/3427

Needs a lot of cleanup.

Nutomic commented 1 year ago

Blocked by https://github.com/antifuchs/governor/pull/146. Looks like no other Rust crate supports such functionality, and I would rather not implement rate limit on my own.