dendrite/federationapi
devonh 241d5c47df
Refactor Federation Destination Queues (#2807)
This is a refactor of the federation destination queues.
It fixes a few things, namely:
- actually retry outgoing events with backoff behaviour
- obtain enough events from the database to fill messages as much as
possible
- minimize the amount of running goroutines
  - use pure timers for backoff
  - don't restart queue unless necessary
  - close the background task when backing off
- increase max edus in a transaction to match the spec
- cleanup timers more aggresively to reduce memory usage
- add jitter to backoff timers to reduce resource spikes
- add a bunch of tests (with real and fake databases) to ensure
everything is working
2022-10-19 11:03:16 +01:00
..
api Fix issue with DMs shown as normal rooms (#2776) 2022-10-07 16:00:12 +02:00
consumers Private read receipts (#2789) 2022-10-11 12:27:21 +01:00
internal Fix issue with DMs shown as normal rooms (#2776) 2022-10-07 16:00:12 +02:00
inthttp Fix issue with stale device lists (#2702) 2022-09-08 12:03:44 +02:00
producers Fix origin on device list update EDUs 2022-09-16 13:30:20 +02:00
queue Refactor Federation Destination Queues (#2807) 2022-10-19 11:03:16 +01:00
routing Tweak federation M_NOT_FOUND errors 2022-10-11 10:48:36 +01:00
statistics Refactor Federation Destination Queues (#2807) 2022-10-19 11:03:16 +01:00
storage Refactor Federation Destination Queues (#2807) 2022-10-19 11:03:16 +01:00
types Add presence module V2 (#2312) 2022-04-06 13:11:19 +02:00
federationapi_keys_test.go Tweak InsertMigration to avoid logging (#2720) 2022-09-22 15:53:15 +02:00
federationapi_test.go Tweak InsertMigration to avoid logging (#2720) 2022-09-22 15:53:15 +02:00
federationapi.go Refactor Federation Destination Queues (#2807) 2022-10-19 11:03:16 +01:00