Originally Cat-a-lot.js made submitted all edits parallel. This caused spikes which caused outages (see T370304). Fix for that was to add 1s delay between edits which made tool very slow.
Basic idea of Cat-a-lot is that user can select files in category view and then add, remove or move them in categories. Usage profile is that mostly users are usually selecting some files (in category view there is max 200 files) and then move them. However, in edge cases user could also do thousands edits per minute with average of 16 successful edits per second.
Proposed fix for this is to limit the concurrent edits to 5 and if maxlag is higher than 1.5s then limit it to 1. This would allow reasonable fast user experience when there is no high load and prevent choking the system with large automated edit streaks.
Example code