-
-
Notifications
You must be signed in to change notification settings - Fork 147
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
Cache Changes to Improve Overall PushPull/MongoDB Performance #948
Comments
@krapie
|
@binary-ho Well, this issue is just a conceptual thought that I have, and I think we need to discuss about the necessity and the benefits of this feature. But this is a very fun issue to discuss, so maybe starting with PoC might do. For your questions:
Reducing the load of MongoDB is the primary goal, but I'm expecting reduced response time as well.
Primary
About the caching strategy, we need to brainstorm about it. I do not have any ideas for now.
I'm considering local in-memory caching because we do not need global caching in cluster mode, which do not share document workload across the servers. |
Description:
Currently, PushPull RPC always queries MongoDB, resulting in overhead. To reduce this overhead and improve the response time of PushPull RPC, we can consider implementing a caching mechanism for Changes or Snapshot data used in PushPull operations. These data have high locality due to the nature of CRDT use cases and are immutable, making them suitable for caching.
Why:
Implementing a cache for Changes or Snapshot data will optimize MongoDB performance and reduce response time for PushPull RPC operations. It will help improve overall system efficiency and user experience while working with PushPull functionalities.
The text was updated successfully, but these errors were encountered: