I need to make 100s of http requests to a gated API, 5 requests per second. Using Angular 6 with CLI and RXjs. On the Node.js server, I know how to do this with request-retry NPM package. How do I do it with Angular 6?
I know how to make a single request, or how to many many requests, but how do I insert a time delay so that only 5 requests are made a second?
getApps(luisAuthoringKey:string): Observable<any> {
this.httpOptions.headers.set("Ocp-Apim-Subscription-Key",luisAuthoringKey);
return this.http.get(this.endpoint + 'apps', this.httpOptions).pipe(
map(this.extractData));
}