For processing ldif records from the stream using an aync call (to a SaaS), I need to throttle the "data" events on the stream. I tried stream.pause but it had no effect.
Without throttling it will end up firing off an many async calls as the number of records in the ldif file. Not ideal because it is likely to choke the api. Is there any way to pause the "data" event while the previous data is still being processed? Or any way to do rate control?
Thanks,
Hemant
For processing ldif records from the stream using an aync call (to a SaaS), I need to throttle the "data" events on the stream. I tried stream.pause but it had no effect.
Without throttling it will end up firing off an many async calls as the number of records in the ldif file. Not ideal because it is likely to choke the api. Is there any way to pause the "data" event while the previous data is still being processed? Or any way to do rate control?
Thanks,
Hemant