-
Notifications
You must be signed in to change notification settings - Fork 639
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
feature support watch event by key #227
Comments
Thank you for your attention. What is your scenario? Please give me more information to help me to implement this. |
|
Would you like to accept this new feature? @Jeremy-Run |
@roseduan |
OK, you can refer to the implementation in ETCD, I remember it has this feature. |
This is my plan, what do you think?
In addition, there is no strong guarantee for notification information, that is, only the notification content is stored in memory, and there may be cases where notification information is lost. |
we can implement it more straightforward, no need to add a list to store the overflow part. |
That only needs to circulate the queue, the overflow directly overwrites the write, and the read pointer points to the next one of some write pointers. However this has the potential to lose events while the DB is running. |
Right, we can not store all events in memory, even the queue is huge enough, but the data may be more. |
Okay, any other points to discuss? If not, I will develop it according to this idea. |
These are all my thoughts, thanks. |
@Liberxue This new feature has merged into main branch, you can try it as you wish. |
when this's key value change , support notify key event
The text was updated successfully, but these errors were encountered: