-
-
Notifications
You must be signed in to change notification settings - Fork 210
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
Add JRuby / JDBC support for LISTEN #479
Conversation
0c98e48
to
b2f5e65
Compare
Hi @bensheldon, I'm not very familiar with postgre Listen/Notify features. Is there any specific you would like me to check? Thanks. |
@tedhexaflow I think mainly I'm curious about:
And I guess more generally, I think LISTEN/NOTIFY for JRuby is exciting and brings parity between MRI and JRuby in GoodJob's benefits of low-latency job execution, so any confidence boosting there is appreciated 😄 And lastly, I wonder if I should suggest that this be implemented in Rails ActionCable Postgres adapter too, because that's what inspired GoodJob's implementation: https://github.com/rails/rails/blob/ce3db04cd74ed267fb083a1342672194912ea87d/actioncable/lib/action_cable/subscription_adapter/postgresql.rb#L106-L108 |
b2f5e65
to
8a6e5ca
Compare
Hi @bensheldon Thanks for the detail. I think I am not the right person to provide helpful feedback for those questions. Let me try to reach Charles @headius from JRuby and ask for help to provide feedback. |
@bensheldon @tedhexaflow I don't know much about this library or about Postgres notifications in general, but...
We're happy to help make JRuby support happen, if that means answering questions, fixing JRuby-related issues, or understanding Java APIs. Stop by our Matrix channel if you need anything! |
8a6e5ca
to
32dcb61
Compare
@headius thank you! That's really helpful context. I joined the Matrix channel and I'll definitely bring my questions there. Thanks again! |
Thank you so much 🙏 @headius. |
wait_for_notify
.SELECT 1
query every 1 second.@tedhexaflow fyi, I'd love your feedback on this