mrrooijen / msngr Goto Github PK
View Code? Open in Web Editor NEWA light-weight Ruby library for multi-threaded Ruby applications that allows threads to share a single service connection for more efficient messaging.
License: MIT License
A light-weight Ruby library for multi-threaded Ruby applications that allows threads to share a single service connection for more efficient messaging.
License: MIT License
Hi guys,
I'm on a free plan on heroku, running a rails-api
app, on puma
using msngr
and redis to go
(free), and basically is no working.
anyone has tried it on Heroku? is having any issue?
Sometimes I have the 'Can not connect to redis' in listen!
method
After six reconnects attempts it leads to Puma web server crash.
After restarting puma and msngr works fine some time. But can suddenly crash.
Messenger error occurred:
Redis::CannotConnectError
/var/www/tritium/current/vendor/bundle/ruby/2.2.0/gems/redis-3.2.2/lib/redis/client.rb:332:in `rescue in establish_connection'
/var/www/tritium/current/vendor/bundle/ruby/2.2.0/gems/redis-3.2.2/lib/redis/client.rb:318:in `establish_connection'
/var/www/tritium/current/vendor/bundle/ruby/2.2.0/gems/redis-3.2.2/lib/redis/client.rb:94:in `block in connect'
/var/ww
is::CannotConnectError
/var/www/tritium/current/vendor/bundle/ruby/2.2.0/gems/redis-3.2.2/lib/redis/client.rb:332:in `rescue in establish_connection'
/var/www/tritium/current/vendor/bundle/ruby/2.2.0/gems/redis-3.2.2/lib/redis/client.rb:318:in `establish_connection'
/var/www/tritium/current/vendor/bundle/ruby/2.2.0/gems/redis-3.2.2/lib/redis/client.rb:94:in `block in connect'
/var/www/tritium/current/vendor/bundle/ruby/2.2.0/gems/redis-3.2.2/lib/redis/client.rb:280:in `with_reconnect'
/var/www/tritium/current/vendor/bundle/ruby/2.2.0/gems/redis-3.2.2/lib/redis/client.rb:93:in `connect'
/var/www/tritium/current/vendor/bundle/ruby/2.2.0/gems/redis-3.2.2/lib/redis/client.rb:351:in `ensure_connected'
/var/www/tritium/current/vendor/bundle/ruby/2.2.0/gems/redis-3.2.2/lib/redis/client.rb:208:in `block in process'
/var/www/tritium/current/vendor/bundle/ruby/2.2.0/gems/redis-3.2.2/lib/redis/client.rb:293:in `logging'
/var/www/tritium/current/vendor/bundle/ruby/2.2.0/gems/redis-3.2.2/lib/redis/client.rb:207:in `process'
/var/www/tritium/current/vendor/bundle/ruby/2.2.0/gems/redis-3.2.2/lib/redis/client.rb:127:in `block in call_loop'
/var/www/tritium/current/vendor/bundle/ruby/2.2.0/gems/redis-3.2.2/lib/redis/client.rb:267:in `with_socket_timeout'
/var/www/tritium/current/vendor/bundle/ruby/2.2.0/gems/redis-3.2.2/lib/redis/client.rb:274:in `without_socket_timeout'
/var/www/tritium/current/vendor/bundle/ruby/2.2.0/gems/redis-3.2.2/lib/redis/client.rb:126:in `call_loop'
/var/www/tritium/current/vendor/bundle/ruby/2.2.0/gems/redis-3.2.2/lib/redis/subscribe.rb:35:in `subscription'
/var/www/tritium/current/vendor/bundle/ruby/2.2.0/gems/redis-3.2.2/lib/redis/subscribe.rb:16:in `psubscribe'
/var/www/tritium/current/vendor/bundle/ruby/2.2.0/gems/redis-3.2.2/lib/redis.rb:2718:in `_subscription'
/var/www/tritium/current/vendor/bundle/ruby/2.2.0/gems/redis-3.2.2/lib/redis.rb:2113:in `block in psubscribe'
/var/www/tritium/current/vendor/bundle/ruby/2.2.0/gems/redis-3.2.2/lib/redis.rb:57:in `block in synchronize'
/home/tritium/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/monitor.rb:211:in `mon_synchronize'
/var/www/tritium/current/vendor/bundle/ruby/2.2.0/gems/redis-3.2.2/lib/redis.rb:57:in `synchronize'
/var/www/tritium/current/vendor/bundle/ruby/2.2.0/gems/redis-3.2.2/lib/redis.rb:2112:in `psubscribe'
/var/www/tritium/current/vendor/bundle/ruby/2.2.0/gems/msngr-0.0.1/lib/msngr/clients/redis.rb:28:in `on_message'
/var/www/tritium/current/vendor/bundle/ruby/2.2.0/gems/msngr-0.0.1/lib/msngr/messenger.rb:76:in `listen'
/var/www/tritium/current/vendor/bundle/ruby/2.2.0/gems/msngr-0.0.1/lib/msngr/messenger.rb:57:in `block (2 levels) in listen!'
/var/www/tritium/current/vendor/bundle/ruby/2.2.0/gems/msngr-0.0.1/lib/msngr/messenger.rb:55:in `loop'
/var/www/tritium/current/vendor/bundle/ruby/2.2.0/gems/msngr-0.0.1/lib/msngr/messenger.rb:55:in `block in listen!'
Restarting..
Can you update the minimum requirements for this gem please?
Also, is there support for subscribe notifications?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.