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

What is the best way to support unique number generator with both sequential increment and random number generator option in Java?

$
0
0

I have a requirement where we need to support generation of unique number with both sequential and random increment option with or within range of numbers.

Currently we support only sequential using redis so that we don’t need to handle multi-threading and multiple instances.

Can someone please give some insight on how to support random number generator with/within range in redis as well?

Any specific fast performing algorithm to support both cases in Java?


Viewing all articles
Browse latest Browse all 2204

Trending Articles



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