Content-Length: 284275 | pFad | http://github.com/electric-sql/electric/pull/2840

38 fix(sync-service): Fix issue where replication traffic slows down shape restoration by robacourt · Pull Request #2840 · electric-sql/electric · GitHub
Skip to content

fix(sync-service): Fix issue where replication traffic slows down shape restoration #2840

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

Merged
merged 1 commit into from
Jun 18, 2025

Conversation

robacourt
Copy link
Contributor

Fixes #2767 by not starting the replication client streaming until the consumers are ready. This avoids the need for the consumers to buffer messages until ready, which also reduces memory consumption and uses one less feature of GenStage making it easier to replace.

@robacourt robacourt marked this pull request as ready for review June 18, 2025 14:38
Copy link

codecov bot commented Jun 18, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.13%. Comparing base (6af9f33) to head (b53e676).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2840      +/-   ##
==========================================
+ Coverage   77.84%   78.13%   +0.28%     
==========================================
  Files         155      155              
  Lines        7357     7358       +1     
  Branches      272      272              
==========================================
+ Hits         5727     5749      +22     
+ Misses       1628     1607      -21     
  Partials        2        2              
Flag Coverage Δ
elixir 77.03% <100.00%> (+0.33%) ⬆️
elixir-client 73.57% <ø> (+0.54%) ⬆️
packages/experimental 87.73% <ø> (ø)
packages/react-hooks 86.30% <ø> (ø)
packages/typescript-client 92.41% <ø> (ø)
packages/y-electric 55.12% <ø> (ø)
postgres-140000 77.11% <100.00%> (?)
postgres-150000 77.13% <100.00%> (-0.06%) ⬇️
postgres-170000 77.13% <100.00%> (?)
sync-service 77.50% <100.00%> (+0.31%) ⬆️
typescript 84.36% <ø> (ø)
unit-tests 78.13% <100.00%> (+0.28%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@robacourt robacourt force-pushed the rob/stream-once-consumers-ready branch from a236d6a to b53e676 Compare June 18, 2025 14:49
Copy link
Member

@alco alco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice.

@robacourt robacourt merged commit 7267fe3 into main Jun 18, 2025
42 of 43 checks passed
@robacourt robacourt deleted the rob/stream-once-consumers-ready branch June 18, 2025 15:25
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.

Replication traffic slows down shape restoration
2 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/electric-sql/electric/pull/2840

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy