Handling large bursts of POST requests to your ActivityPub inbox, using a buffer in Nginx
Fediverse traffic is pretty bursty and sometimes there will be a large backlog of Activities to send to your server, each of which involves a POST. This can hammer your instance and overwhelm the backend’s ability to keep up. Nginx provides a rate-limiting function which can accept POSTs at full speed and proxy them slowly...
![](https://kbin.social/media/cache/resolve/entry_thumb/41/82/4182b26f86c2d4560624d70ec7032ce06819326deb49e3bee35e0bdae343e65d.png)