Project

db_blaster

0.0
No release in over 3 years
Low commit activity in last 3 years
Push db changes to AWS SNS.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

Coverage Badge

DbBlaster

Image of DB to SNS

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.