Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

event_sourcery-dynamodb

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

event_sourcery-dynamodb

  • 0.1.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

EventSourcery::DynamoDB

The following EventSourcery functionality has been implemented for DynamoDB

  • Tracker
  • Event Store
  • Projector
  • Reactor

Installation

Add the following to your Gemfile

gem 'event_sourcery-dynamodb',  git: 'git@github.com:envato/event_sourcery-dynamodb.git'

Usage

Ensure you have the following environment variables set:

  • AWS_REGION
  • AWS_ACCESS_KEY_ID
  • AWS_SECRET_ACCESS_KEY

Event Tracker

require 'event_sourcery/dynamodb'
dynamodb_client = Aws::DynamoDB::Client.new

tracker = EventSourcey::DynamoDB::Tracker.new(
  dynamodb_client,
  table_name: 'event_trackers'
)

Development

In development a local Dynamodb instance is installed. To start up the DynamoDB local instance run:

bundle exec dynamodb-local

This starts up a dynamodb instance running on port 8000. You can connect to the instance by:

require 'event_sourcery/dynamodb'
dynamodb_client = Aws::DynamoDB::Client.new(endpoint: 'http://localhost:8000')

tracker = EventSourcey::DynamoDB::Tracker.new(
  dynamodb_client,
  table_name: 'event_trackers'
)

FAQs

Package last updated on 05 Jul 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc