Skip to content

Conversation

glaucocustodio
Copy link
Contributor

Motivation / Background

Now more than before, with the upcoming Solid Queue, developers might not want to have Redis as a dependency.

The PostgreSQL adapter for ActionCable plays an important role on this transition, allowing people to transmit data over the database.

One limitation needs to be considered though, PostgreSQL has a 8000 bytes limit on NOTIFY.

This PR documents that and links a possible solution: the actioncable-enhanced-postgresql-adapter gem.

Checklist

Before submitting the PR make sure the following are checked:

  • This Pull Request is related to one change. Changes that are unrelated should be opened in separate PRs.
  • Commit message has a detailed description of what changed and why. If this PR fixes a related issue include it in the commit message. Ex: [Fix #issue-number]
  • Tests are added or updated if you fix a bug or add a feature.
  • CHANGELOG files are updated for the changed libraries if there is a behavior change or additional feature. Minor bug fixes and documentation changes should not be included.

@rails-bot rails-bot bot added the docs label Nov 2, 2023
@zzak
Copy link
Member

zzak commented Nov 4, 2023

I don't think we should be recommending gems in the guides based off this one edge case, IMO.

@glaucocustodio
Copy link
Contributor Author

I disagree, if we know a limitation of the framework and a possible solution, why no let people know? It's always up to the person to decide whether or not they want to use the "recommended" gem.

@glaucocustodio
Copy link
Contributor Author

If I remove the gem recommendation would you approve @zzak?

@zzak
Copy link
Member

zzak commented Nov 24, 2023

Yeah, I think it makes sense to call out any limitations here for the particular adapter in question. It seems like there is some ongoing discussion in #49634 that I think we should wait on before providing any solutions or workarounds in the docs.

@glaucocustodio
Copy link
Contributor Author

are you happy now @zzak?

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

Successfully merging this pull request may close these issues.

3 participants