-
Notifications
You must be signed in to change notification settings - Fork 14k
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
Async query deduplication and cancellation support #14112
Comments
Does the |
@etr2460 I agree that consistency here is desired. I think we wanted to leave the existing cache values as they are, but as for the logic that generates the cache key, the idea is for it to be the same hashing logic, but with a different key prefix. Does that make sense, or are you thinking something different? |
Nope, that makes sense to me! Simply wanted to make sure that you knew we already had logic to generate this key that could be reused for this use case |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue |
Hey all, has there been any progress made on this? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue |
Looking forward to this feature |
Love the proposal, but I'm closing this as stale since it's been silent for so long, and we're trying to steer toward a more actionable Issues backlog. If people are still encountering this in current versions (currently 3.x) please open a new Issue or a PR to address the problem. CC @craig-rueda in case there's any interest to carry more of this forward in PRs or SIPs |
SIP-39 - Global Async Query Support mentions a future effort around deduplicating and cancelling asynchronous queries. I'm opening this issue to document our implementation plans for visibility + feedback.
While we explored a few options for implementation, this is our current preferred approach.
cc active participants in SIP-39: @robdiciuccio @etr2460 @DiggidyDave @willbarrett @williaster
Overview
Deduplication will require the current flow, a 1:1 mapping of query to client, to move to a 1:N mapping of query to N clients.
State
Existing state
The application currently performs four writes to Redis to support both sync/async queries:
New state requirements
All of the above values are currently written after the background worker has executed the query. Deduplication and cancellation features will need some state before the query has executed. To track requests, we'll need additional state:
Architecture
Pros
Cons
The text was updated successfully, but these errors were encountered: