Skip to content

Conversation

vadimonus
Copy link
Contributor

@vadimonus vadimonus commented Aug 7, 2025

Currently RedisBroadcaster do not work correctly with redis cluster connections (both phpredis and predis drivers)

This PR adds logic for broadcasting to redis cluster and integration test to show it's working now.

Due to implementation details, the logic for phpredis and predis is very different.
Predis solution inspired by predis/predis#562 (comment)
phpredis solution inspired by #48682

Broadcasting integration tests added to queue.yaml, as there are to little broadcasting tests to run separately.

Copy link

github-actions bot commented Aug 7, 2025

Thanks for submitting a PR!

Note that draft PR's are not reviewed. If you would like a review, please mark your pull request as ready for review in the GitHub user interface.

Pull requests that are abandoned in draft may be closed due to inactivity.

@vadimonus vadimonus force-pushed the redis-cluster-broadcaster branch 4 times, most recently from 6ab9525 to adb4c9f Compare August 7, 2025 20:09
@vadimonus vadimonus force-pushed the redis-cluster-broadcaster branch from adb4c9f to 2627568 Compare August 7, 2025 20:18
@vadimonus vadimonus marked this pull request as ready for review August 7, 2025 20:22
@taylorotwell taylorotwell merged commit 9bb82f7 into laravel:12.x Aug 8, 2025
60 checks passed
@vadimonus vadimonus deleted the redis-cluster-broadcaster branch August 8, 2025 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants