https://github.com/errbit/errbit_zmq_handler
Errbit extension providing handler for notices transfered via 0MQ
https://github.com/errbit/errbit_zmq_handler
Last synced: 3 months ago
JSON representation
Errbit extension providing handler for notices transfered via 0MQ
- Host: GitHub
- URL: https://github.com/errbit/errbit_zmq_handler
- Owner: errbit
- License: mit
- Created: 2011-02-22T22:08:25.000Z (almost 15 years ago)
- Default Branch: master
- Last Pushed: 2012-06-06T11:23:27.000Z (over 13 years ago)
- Last Synced: 2025-02-24T23:28:51.350Z (12 months ago)
- Language: Ruby
- Homepage: https://github.com/oruen/errbit_zmq_handler
- Size: 102 KB
- Stars: 4
- Watchers: 9
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.rdoc
- License: MIT-LICENSE
Awesome Lists containing this project
README
= Errbit 0MQ Handler
Errbit notifier extension for handling notices over 0mq socket.
One should use this library to listen to Hoptoad 0MQ Notifier powered app (https://github.com/oruen/hoptoad_zmq_notifier)
Advantage of using Errbit 0MQ Handler is async notices processing. You could fire notices from the client and not depend on
timeouts, service unavailability and services errors.
== Requirements
Ruby 1.9 or JRuby. ffi-rzmq is not working with MRI (and REE) 1.8.7.
== Installation
Install zeromq 2.1 from http://www.zeromq.org or your favorite package system.
Get Errbit https://github.com/errbit/errbit
Install the gem:
gem install errbit_zmq_handler
== Usage
Config 0MQ handler by defining it's address it config/initializers/errbit_zmq_handler.rb:
ErrbitZmqHandler.configure do |config|
# Address to bind to listen exception notifications
config.uri = "tcp://127.0.0.1:9998"
end
Starting handler daemon:
APP_ROOT=/path/to/app/root RAILS_ENV=production errbit_zmq_handler start
Stop handler daemon:
APP_ROOT=/path/to/app/root RAILS_ENV=production errbit_zmq_handler stop
Restart handler daemon:
APP_ROOT=/path/to/app/root RAILS_ENV=production errbit_zmq_handler restart
== License
HoptoadZmqNotifier is Copyright © 2011 oruen. It is free software, and may be redistributed under the terms specified in the MIT-LICENSE file.