diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2024-10-31 17:59:10 -0400 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2024-10-31 17:59:10 -0400 |
| commit | 8088a8bd8bced9127edcb2284b993332d291b443 (patch) | |
| tree | b1c09c6331dcb13d3b54fb1a42df09a9de0bbde5 /ui/lib/store/channels.js | |
| parent | 2d0611fc21f781ad875dc878f59ce2fc140c9c20 (diff) | |
Limit background expiry to the API.
Using requests to drive background work (expiring things, mainly) is a hack to avoid the complexity of background workers, but it's reaching its limits. In the live deployment at `hi.grimoire.ca`, we found that requests for the UI were taking 300+ milliseconds as the expiry process required database access. The DB there is slow, which is a separate issue, but also being accessed many times for little benefit.
Since only the API is actually _affected_ by expiry, I've scoped the middleware down to just those endpoints.
Diffstat (limited to 'ui/lib/store/channels.js')
0 files changed, 0 insertions, 0 deletions
