Skip to content

Conversation

@FZambia
Copy link
Member

@FZambia FZambia commented Apr 1, 2025

Adding an option WithVersion for Publish op to keep in-app version inside Centrifuge history streams to drop non-actual messages (due to unordered processing) on Broker level.

This is mostly useful for channels where publications contain entire state, so loosing intermediary messages is safe and beneficial.

@codecov
Copy link

codecov bot commented Apr 3, 2025

Codecov Report

Attention: Patch coverage is 73.80952% with 11 lines in your changes missing coverage. Please review.

Project coverage is 83.36%. Comparing base (d423464) to head (6d6e12f).
Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
options.go 0.00% 5 Missing ⚠️
internal/memstream/stream.go 55.55% 4 Missing ⚠️
broker_memory.go 94.73% 1 Missing ⚠️
broker_redis.go 88.88% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #472      +/-   ##
==========================================
- Coverage   83.39%   83.36%   -0.03%     
==========================================
  Files          39       39              
  Lines        8978     9012      +34     
==========================================
+ Hits         7487     7513      +26     
- Misses       1126     1135       +9     
+ Partials      365      364       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@FZambia FZambia changed the title Prototype of app stream position Possibility to provide version and version epoch fields for publication Apr 3, 2025
@FZambia FZambia merged commit 155d675 into master Apr 5, 2025
8 checks passed
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