Limit concurrent AJAX calls
I had a problem with a big formprocessor that would not save - simply says 'There was an error saving'.
Looking at the browser dev-tools shows that 'save' results in numerous AJAX calls - at least one per input and action, plus a few extra. On this particular form it resulted in 50+ simultaneous AJAX calls hitting the server resulting in some of the them failing because of server limits (number of FPM processes, number of DB connections).
It would seem more efficient and scalable if some of those AJAX calls could be combined - maybe getting all the data about inputs in one call rather than one per input. Failing that, a retry on specific errors would help.
Any suggestions as to how that could be implemented here?
Our current workaround is to limit the number of connections from the browser using the network.http.max-connections-per-server
config in Firefox.