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

chore(sync-service): Decouple Timeline from ShapeCache #1846

Conversation

alco
Copy link
Member

@alco alco commented Oct 14, 2024

PR chain: #1842#1841#1845#​1846#1862

See individual commits to get a better idea of what this PR achieves.

Copy link
Contributor

@msfstef msfstef left a comment

Choose a reason for hiding this comment

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

Nice! I think we can actually get rid of persistent_kv altogether and make Timeline write directly to a single file (it was used for ShapeStatus before but I've removed that, so it is now only used by Timeline) - we can do that in a separate PR

@alco alco force-pushed the alco/db-connection-streamlining branch from edbbccd to c14c6fe Compare October 16, 2024 15:53
alco added 4 commits October 16, 2024 18:54
This change reduces coupling between Timeline and ShapeCache modules,
resulting in easier comprehension and maintenance of this small part of
the code.

ConnectionManager serves as the supervisor of the connection startup
procedure and that's where we keep the knowledge about how a change in
PG timeline affects the shape cache.

As a bonus, we don't have to first start all shape consumers just to
bring them all down afterwards, as we've been doing up until this
change.
@alco alco force-pushed the alco/decouple-timeline-from-shape-cache branch from ae60ac5 to 8381a60 Compare October 16, 2024 15:58
@alco alco changed the title Alco/decouple timeline from shape cache chore(sync-service): Decouple Timeline from ShapeCache Oct 16, 2024
@alco alco marked this pull request as ready for review October 16, 2024 16:04
@alco
Copy link
Member Author

alco commented Oct 17, 2024

Merged into main manually as a chain of commits, one per PR.
#1867

@alco alco closed this Oct 17, 2024
@alco alco deleted the alco/decouple-timeline-from-shape-cache branch October 17, 2024 13:59
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