Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate Listen/Notify as alternative to polling #54

Closed
bensheldon opened this issue Jul 23, 2020 · 1 comment · Fixed by #82
Closed

Investigate Listen/Notify as alternative to polling #54

bensheldon opened this issue Jul 23, 2020 · 1 comment · Fixed by #82
Labels
enhancement New feature or request

Comments

@bensheldon
Copy link
Owner

Que uses Listen/Notify.

Some pros/cons here: https://news.ycombinator.com/item?id=9576864

How I did it 5 years ago on another project (ActiveRecord's API may have changed): https://github.com/bensheldon/rails_postgres_websockets_chat/blob/master/app/lib/async_events.rb

@bensheldon
Copy link
Owner Author

Captured the effect of changing to LISTEN/NOTIFY. Dropped from the 1-second polling interval down to tenths of a second (logarithmic scale).

Screen Shot 2020-08-20 at 7 05 40 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant