Add support for `JSON.GET.WATCH` command
Add support for reactive queries on the existing JSON.GET command by introducing JSON.GET.WATCH.
This command should send push-responses to subscribed clients whenever the data inside the respective hash set changes.
As a part of this feature, you are also required to add support for the same to the dicedb-go SDK inside the watch_command.go file.
Reference
- You may refer to #1047 to understand the changes required to support this command.
- #924 provides more background on the feature's underlying implementation (but may not be directly relevant to this issue)
Testing
- Ensure integration tests are added, you can refer to existing
.WATCHintegration tests. - Integration tests should include both resp tests and SDK tests.
@JyotinderSingh I would like to work on this
@JyotinderSingh I would like to work on this
Assigned.
@JyotinderSingh
I'm trying to use ZRANGE.WATCH as per the reference in Adds support for ZRANGE.WATCH #1047, but I'm getting the error:
ERR unknown command 'ZRANGE.WATCH', with args beginning with: zrangewatchkey 0 -1 REV WITHSCORES
I'm on the latest branch and have tested it in both the CLI and the Go SDK, but the command isn’t recognized. Am I missing anything here to get this working?
@JyotinderSingh
I'm trying to use ZRANGE.WATCH as per the reference in Adds support for ZRANGE.WATCH #1047, but I'm getting the error:
ERR unknown command 'ZRANGE.WATCH', with args beginning with: zrangewatchkey 0 -1 REV WITHSCORESI'm on the latest branch and have tested it in both the CLI and the Go SDK, but the command isn’t recognized.
Am I missing anything here to get this working?
Please run the server in multithreaded mode.
Use go run main.go --enable-multithreading=true
are you still working on this issue? @arbha1erao
Can I please take this up @JyotinderSingh @tarun-29 ?
Can I please take this up @JyotinderSingh @tarun-29 ?
Assigned
/assign
@hrishikeshdkakkad I have started on this. In case I need help, I will break it down and assign a subtask to you.
@shashank-priyadarshi Hey are you working on this issue still ? need help ? i can take it, thanks