DbBlaster
DbBlaster can either publish changed database rows to AWS SNS or push the changes to S3. The first time DbBlaster::PublishAllJob.perform_later
is ran,
the entire database will be incrementally published. Subsequent runs will publish rows whose updated_at
column
is more recent than the last run.
Consuming the published messages is functionality not provided by DbBlaster.
Usage
Update config/initializers/db_blaster_config.rb
with valid AWS credentials and options. Either sns_topic
or s3_bucket
must be set!
Schedule DbBlaster::PublishAllJob.perform_later
to run periodically with something
like sidekiq-cron or whenever
Installation
Add this line to your application's Gemfile:
gem 'db_blaster'
And then execute:
$ bundle
Install Migrations:
$ rake db_blaster:install:migrations && rake db:migrate
Copy sample config file to rails project:
rails g db_blaster:install
License
The gem is available as open source under the terms of the MIT License.