awesome-nodejs-streams icon indicating copy to clipboard operation
awesome-nodejs-streams copied to clipboard

What streams should I use to rate limit a pipeline (in object mode)?

Open sprijk opened this issue 6 years ago • 2 comments

sprijk avatar Mar 03 '18 19:03 sprijk

Sorry for late reply I must have overlooked this!

In object mode, instead of using bytes, the HighWaterMark uses number of obejcts - so its up to you to estimate how big each object is and then approximate n times that to get ram usage.

Or by rate limit, do you mean number of objects passing though a through stream, per an amount of time?

thejmazz avatar May 28 '18 14:05 thejmazz

Exactly, I mean as a measure of time! Any ideas?

Op ma 28 mei 2018 om 16:29 schreef Julian Mazzitelli < [email protected]>:

Sorry for late reply I must have overlooked this!

In object mode, instead of using bytes, the HighWaterMark uses number of obejcts - so its up to you to estimate how big each object is and then approximate n times that to get ram usage.

Or by rate limit, do you mean number of objects passing though a through stream, per an amount of time?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/thejmazz/awesome-nodejs-streams/issues/5#issuecomment-392542103, or mute the thread https://github.com/notifications/unsubscribe-auth/ACO17w_fKRovvoLV4FfFIgr7hx5Ko9dNks5t3AnlgaJpZM4SbDjW .

sprijk avatar Jul 29 '18 19:07 sprijk