Comment 16 for bug 1821094

Revision history for this message
Jane Sandberg (sandbergja) wrote :

One other note: on the Angular side, RxJS has some nice built-in options for batching concurrent API calls. For example, the RxJS version of $q.all, merge, allows you to pass in a number for how large you want these batches to be [1]. In practice, the Angular client uses merge's cousin mergeMap more often so far, and that also has an option to pass in a batch size argument [2].

Long story short, I'm excited for more Angular and less AngularJS, since it means more RxJS and less $q.

[1] https://github.com/ReactiveX/rxjs/blob/388c4852948660abcff22d7b82ccb0a29c77428c/src/internal/observable/merge.ts#L112
[2] It's called "concurrent" here: https://www.learnrxjs.io/learn-rxjs/operators/transformation/mergemap