We recently started to work with redis-json (github.com/nitishm/go-rejson/v4) and redis-search (github.com/RediSearch/redisearch-go/redisearch) clients in Golang.
We need to support bulk insert operations of json objects and we don’t want to use transactions.
Is there a way to implement a pipeline with redis-json (we want to pipeline a bunch of json.set operations)? or if someone can refer me to a golang package which does support this kind of pipeline?
Thank you 🙂
2
Answers
In the redis documentation itself there are recommended clients specific to each language.
https://redis.io/docs/stack/json/clients/
rueian/rueidis has the support for Pipelining
https://github.com/rueian/rueidis/blob/master/pipe.go
Edit :
https://github.com/gomodule/redigo <– has more stars and seems to be recommended
I am the author of https://github.com/rueian/rueidis.
Here is an example of how to use rueidis for bulk insert and bulk read: