Quantcast
Channel: Active questions tagged redis+java - Stack Overflow
Viewing all articles
Browse latest Browse all 2222

Sync jedis pipeline peridically

$
0
0

I am working on a project where I need to write a stream of data to redis. I am using jedis clustered client with pipeline. The stream rate could be very fluctuating. So instead of syncing the pipeline say after every 100 records, I also want to sync it every 1 second. What would be a cleaner approach to achieve this.

  • As jedis is not thread safe, I guess using a scheduler/Timer (which uses a different Thread) is not safe

Really appreciate any suggestions/thoughts. Thank you!


Viewing all articles
Browse latest Browse all 2222

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>