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

Add a postgres backend #49

Open
jwoertink opened this issue Sep 21, 2022 · 2 comments
Open

Add a postgres backend #49

jwoertink opened this issue Sep 21, 2022 · 2 comments
Labels
enhancement New feature or request hacktoberfest Valid Issue for Hacktoberfest

Comments

@jwoertink
Copy link
Collaborator

Looks like the Rails version supports this

https://guides.rubyonrails.org/action_cable_overview.html#postgresql-adapter

https://github.com/rails/rails/blob/main/actioncable/lib/action_cable/subscription_adapter/postgresql.rb

@jwoertink
Copy link
Collaborator Author

Looks like Rails might go default with this....

rails/rails#50480

@jwoertink jwoertink added the hacktoberfest Valid Issue for Hacktoberfest label Sep 30, 2024
@jwoertink
Copy link
Collaborator Author

Adding on to this, it looks like Rails went with a different interface for this https://github.com/rails/solid_cable mainly because the PG NOTIFY system requires the data to be less than 8000 bytes so if you need to send larger payloads, you'd have to tell NOTIFY to send the record ID then do a separate fetch for it making things a lot more complex.

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

No branches or pull requests

1 participant