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

Distribute ActionCable load/work #1898

Open
kiragrammel opened this issue Sep 13, 2023 · 0 comments
Open

Distribute ActionCable load/work #1898

kiragrammel opened this issue Sep 13, 2023 · 0 comments
Labels
enhancement ruby Pull requests that update Ruby code

Comments

@kiragrammel
Copy link
Contributor

kiragrammel commented Sep 13, 2023

Normally, ActionCable uses several workers to process messages. This could lead to the problem that the messages are not received in the correct order. Therefore, the synchronized editor (of the pair programming feature) could get quickly out of sync.

To solve this problem, the worker pool size was limited to one worker with 70435a5: config.action_cable.worker_pool_size = 1 in config/application.rb.

However, this change also introduces a potential performance / stability limitation, because only one worker processes now all messages. Hence, all messages are just enqueued and wait until being processed. Therefore, it is necessary to think about another solution.

@MrSerth MrSerth added enhancement ruby Pull requests that update Ruby code labels Sep 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ruby Pull requests that update Ruby code
Projects
None yet
Development

No branches or pull requests

2 participants