Awesome
Eventlog
A simple event log backed by dynamodb and dynamodb streams.
Installation
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
Eventlog
config :eventlog, table: "table_name"
:ok = Eventlog.append("xxxx-xxxx-xxxx-xxxx", %YourEventHere{})
Setup Eventlog tables
:ok = Eventlog.setup
Consumers
defmodule Consumer do
use Eventlog.Consumer
def handle_records(events) do
:ok
end
end
config :eventlog, Consumer, table: "consumer_leases_table_name"
Setup consumer tables
mix run "Consumer.setup"