Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 284a72b4a9
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (13 sloc) 0.862 kb

EnrichStream

A stream that enables asynchronous enrichment of data with concurrency control while preserving FIFO ordering.

Behavior

  • Enrichment is asynchronous.
  • Concurrency is controlled via async.queue.
  • Stream writes are buffered until enrichment has completed.

v1.0.0 Release Notes

v1.0.0 Breaking change: constructor parameters are re-ordered and 'shouldEnrichFunc' is now optional.

Use Cases

Given that enrichment likely takes time which requires buffering the current best use cases are where enrichment is expected to be relatively fast. Use a control stream or other mechanism to tune performance as a pre/post step.

Running Tests

Run node test to send a stream of values for enrichment that are checked for being output in order.

Jump to Line
Something went wrong with that request. Please try again.