-
-
Notifications
You must be signed in to change notification settings - Fork 94
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
Cache recovery mode, delta encoding, channel medium layer #348
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #348 +/- ##
==========================================
- Coverage 83.70% 83.13% -0.57%
==========================================
Files 37 38 +1
Lines 7518 7645 +127
==========================================
+ Hits 6293 6356 +63
- Misses 909 965 +56
- Partials 316 324 +8 ☔ View full report in Codecov by Sentry. |
Introducing sth like https://pusher.com/blog/introducing-cache-channels/, to help with centrifugal/centrifugo#745 - we now have
RecoveryModeCache
to move recovery behaviour into the new mode which only recovers latest publication in channel.Another feature which occasionally araised here is delta compression - possibility to use Fossil algorithm to send delta updates in channels. See https://ably.com/blog/message-delta-compression for a good introduction into general idea here
And one more experimental concept of Channel Medium layer is also introduced here - it's a layer which provides useful per-channel tweaks. Opens a way to send delta updates in at most once scenario, queue and delay broadcast on channel level, optimize position sync in channels with many subscribers.
Would be nice to have separate pull requests for these three features – but it's a bit time-consuming to split at this point :(