Skip to content

Unable to pause the stream #1

Description

@ht512512

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions