Module: DynaModel

Extended by:
DynaModel
Included in:
DynaModel
Defined in:
lib/dyna_model/config.rb,
lib/dyna_model.rb,
lib/dyna_model/query.rb,
lib/dyna_model/table.rb,
lib/dyna_model/tasks.rb,
lib/dyna_model/schema.rb,
lib/dyna_model/version.rb,
lib/dyna_model/document.rb,
lib/dyna_model/response.rb,
lib/dyna_model/attributes.rb,
lib/dyna_model/persistence.rb,
lib/dyna_model/validations.rb,
lib/dyna_model/config/options.rb,
lib/dyna_model/extensions/lock.rb,
lib/dyna_model/extensions/s3_backup.rb

Overview

TODO: S3 key schema that allows for timestamp sorting

Persist DynaModel records for a particular model to S3 for extra backup.

The DynamoDB backup model (using EMR to read and write to S3 is not incremental and quickly takes way too long

and defeats the purpose of a backup)

This is not intended to be used for models with high frequency writes but as a way to incrementally backup models that contain mission critical data (although S3 backups are not guarenteed to be durable since you probably want to delay the S3 write to a backround task).

Defined Under Namespace

Modules: Attributes, Config, Document, Extensions, Persistence, Query, Schema, Tasks, Validations Classes: Response, Table

Constant Summary collapse

VERSION =
"0.0.15"

Instance Method Summary collapse

Instance Method Details

#configureObject Also known as: config



26
27
28
# File 'lib/dyna_model.rb', line 26

def configure
  block_given? ? yield(DynaModel::Config) : DynaModel::Config
end

#loggerObject



31
32
33
# File 'lib/dyna_model.rb', line 31

def logger
  DynaModel::Config.logger
end