Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 1.37 KB

README.md

File metadata and controls

33 lines (22 loc) · 1.37 KB

exmld

This application allows Kinesis and DynamoDB streams to be processed using Elixir or Erlang (by way of the KCL MultiLangDaemon). It's particularly useful when aggregate records are being used and items can be processed in approximate order (as opposed to strict order within each shard), but that isn't a requirement.

Using erlmld, a normal Erlang Kinesis processing application looks like this:

Erlang - MultiLangDaemon processing

Using this Elixir library (which uses erlmld), a processing application looks like this:

Elixir - MultiLangDaemon processing

This is done using the Flow framework to set up a MapReduce-style processing pipeline within a single BEAM node.

By virtue of using the KCL, processing applications can horizontally scale across a group of (homogenous) worker instances.

Unlike most applications using the KCL's MultiLangDaemon, an Erlang or Elixir processing application using this library can easily make full use of a worker's processing power (even if the stream contains a single shard) due to use of the Flow framework.

Examples

See:

  1. example erlang processor
  2. example elixir processor