Skip to content

Dynamodb event log and stream consumer for elixir

Notifications You must be signed in to change notification settings

nerdyworm/eventlog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"

About

Dynamodb event log and stream consumer for elixir

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages