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

db: state change stream and cache on generic KV API #2168

Merged
merged 5 commits into from
Jul 12, 2024

Conversation

canepat
Copy link
Member

@canepat canepat commented Jul 7, 2024

This PR introduces a refactoring of state-change stream and cache on top of the generic KV API now moved within the db module, where generic here means capable of handling both in-process (a.k.a. direct) and out-of-process (i.e. gRPC) client-server setup.

Both StateChangeStream and StateCache were previously tied to the gRPC data types, now they're independent from such types and hence reusable also in the direct setup.

Extras

  • add thread-aware CancellationToken signal-slot in infra module

@canepat canepat added the maintenance Some maintenance work (fix, refactor, rename, test...) label Jul 7, 2024
@canepat canepat marked this pull request as ready for review July 7, 2024 22:29
@canepat canepat marked this pull request as draft July 10, 2024 23:40
fix state change RPC lifecycle for cancellation
expose back-off timeout utility
@canepat canepat marked this pull request as ready for review July 12, 2024 07:57
@canepat canepat merged commit b0ecf82 into master Jul 12, 2024
4 of 5 checks passed
@canepat canepat deleted the db_refactor_state_changes_stream branch July 12, 2024 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Some maintenance work (fix, refactor, rename, test...)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants