awesome-nodejs-streams
awesome-nodejs-streams copied to clipboard
What streams should I use to rate limit a pipeline (in object mode)?
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?
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 .