[MXS-3168] Replace `request` in MaxCtrl Created: 2020-09-10 Updated: 2021-04-01 Resolved: 2021-04-01 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | maxctrl |
| Affects Version/s: | 6 |
| Fix Version/s: | 6.0.0 |
| Type: | Task | Priority: | Major |
| Reporter: | markus makela | Assignee: | markus makela |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
The request library has been deprecated in favor of built-in network request features. The core network code should also be rewritten to leverage the async/await pattern instead of returning plain promises. |
| Comments |
| Comment by markus makela [ 2020-10-19 ] |
|
Another option is to rewrite it in another language which also brings performance benefits that nodejs lacks. |
| Comment by markus makela [ 2021-03-19 ] |
|
Decided to replace request with axios which is already in use by the MaxScale GUI. |