nozzle

A library to dispatch PostgreSQL events to Redis subscribers

Nozzle

Broadcast PostgreSQL database events to Redis channel subscribers.

Installation

  1. Add the dependency to your shard.yml:

    dependencies:
      nozzle:
        github: grkek/nozzle
    
  2. Run shards install

Usage

require "nozzle"

app = Nozzle::Application.new(
  database_url: "DATABASE_URL",
  database_channel: "DATABASE_CHANNEL",
  handlers: [Nozzle::Handlers::Redis.new(url: "REDIS_URL")] of Nozzle::Handlers::Base
)

app.run

This can be run in the background using spawn do or spawn {}.

Development

TODO: Write development instructions here

Contributing

  1. Fork it (https://github.com/grkek/nozzle/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

Repository

nozzle

Owner
Statistic
  • 0
  • 0
  • 0
  • 0
  • 3
  • about 2 years ago
  • September 23, 2022
License

MIT License

Links
Synced at

Sun, 22 Dec 2024 01:44:35 GMT

Languages