sidekiq_relay

Sidekiq Relay

Sidekiq Relay

Build Status

Allows piping of Sidekiq jobs to remote Sidekiq configurations (i.e. non-local Redis) to reduce delays compared to directly enqueuing to remote Redis instances. Supports Redis Sentinel.

Ruby gem coming soon to use in conjunction (e.g. for enqueuing from Rails applications).

Installation

  1. Add the dependency to your shard.yml:

    dependencies:
      sk_relay:
        github: pgeraghty/sidekiq_relay
    
  2. Run shards install

Usage

require "sidekiq_relay"

Given the environment established via the example Redis 4 Docker Compose file, tests should complete successfully.

TODO: Write further usage instructions here

TODO: example.cr that just needs Redis config

TODO: allow loading remote Redis config from YAML alongside a Docker image containing a statically-linked binary.

Development

Testing and development require a functional Redis Sentinel configuration; I have provided Docker Compose files to establish these for Redis 4. Both set up a separate static network so that IP addresses are pre-established.

TODO: Write development instructions here

Contributing

  1. Fork it (https://github.com/pgeraghty/sidekiq_relay_crystal/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

sidekiq_relay

Owner
Statistic
  • 0
  • 0
  • 0
  • 0
  • 2
  • over 5 years ago
  • September 10, 2019
License

MIT License

Links
Synced at

Sun, 22 Dec 2024 14:40:13 GMT

Languages