A simple event log backed by dynamodb and dynamodb streams.
If available in Hex, the package can be installed
by adding eventlog
to your list of dependencies in mix.exs
:
def deps do
[
{:eventlog, "~> 0.1.0"}
]
end
config :eventlog, table: "table_name"
:ok = Eventlog.append("xxxx-xxxx-xxxx-xxxx", %YourEventHere{})
:ok = Eventlog.setup
defmodule Consumer do
use Eventlog.Consumer
def handle_records(events) do
:ok
end
end
config :eventlog, Consumer, table: "consumer_leases_table_name"
mix run "Consumer.setup"