Browser client should limit the number of parallel requests
Bug #1912834 reported by
Bill Erickson
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenSRF |
New
|
High
|
Unassigned |
Bug Description
Evergreen 3.6
Following up on bug #1896285.
It's very easy to write Angular/AngularJS code that results in large numbers of parallel API calls, which can result in overwhelming EG servers -- or at least maxing out service drones, which negatively impacts usability of the system.
Instead of playing wack-a-mole with the errant code, I propose we bake a hard limit into the Ang/AngJS networking code to prevent more than X active parallel requests at any one time. With this, it should not be possible for a single client to max-out a service.
I propose a max of 5 active requests per browser tab, but I could see making it configurable.
tags: | added: parallel-requests |
Changed in opensrf: | |
milestone: | 3.2.2 → none |
To post a comment you must log in.
On reflection, I think it makes more sense to bake this into OpenSRF's websocket client library so we only have to modify one part of the code.