Hazelcast has inbuilt distributed id generator as mentioned here http://docs.hazelcast.org/docs/latest/manual/html/idgenerator.html. The challenge is whenever cache server restart the sequence is lost and restart from zero. As a solution they try to provide an init function which can start id from a specific int. What is the best way to use it to have a continuous id generation no collision which will persist even after server restart and give best performance.
hazelcast distributed id generation
1.7k Views Asked by rohit At
1
There are 1 best solutions below
Related Questions in SEQUENCE
- Recent development in recoding repeated variables in R?
- All increasing sequence of length k of first n whole numbers
- Oracle sequence.NEXTVAL strange order from JSP app
- Creating an alphanumeric sequence
- Longest Snake Sequence
- Using a BackSlash in Java
- R add columns indicating start and end for a sequence within columns
- I can't figure out this sequence - 11110000111000110010
- Tools for generate sequence diagram(UML) from PHP class(files)
- Custom List data structure implementing SequenceType with using of GeneratorOf struct
- Longest Snake Sequence in an Array
- Longest Snake Sequence in a list of numbers
- XQuery - Doing math on elements within a sequence and aggregating results
- group by until changed sequence
- Multiple TSQL sequences in one sequence
Related Questions in DISTRIBUTED
- Fill an array with spmd in Matlab
- Hazelcast Distributed Lock with iMap
- is sharding same as distributed database in mongoDB?
- How to start distributed Erlang app without starting dependencies at every node?
- Spark tasks doesn't seem to be well distributed
- OrientDB to automatically create databases on startup
- Unequal distribution of packets in distributed system
- Logical Clocks: Lamport Timestamps
- MPI Random Broadcasting
- Hazelcast (Java) and ETCD (golang) differences/similarities?
- IP addresses in distributed systems
- Usage of RemoteCache with DeltaAware and Delta interface infinispan
- How to achieve similar color distribution with fewer pixels?
- How can I ensure a periodic task will run forever on a linux machine?
- Warning that "unknown addresses are found in partition table"
Related Questions in HAZELCAST
- Hazelcast: MapLoader documentation gives empty implementation to loadAllKeys
- Using hashes as IDs in key-value stores
- Hazelcast Distributed Lock with iMap
- Hazelcast instance becomes inactive (HazelcastInstanceNotActiveException)
- Hazelcast client threads
- com.hazelcast.nio.serialization.HazelcastSerializationException: java.io.NotSerializableException: java.util.WeakHashMap
- Hazelcast 3.3 - EntryProcessor is accessing "non-local" keys
- Hazelcast Eviction on Update
- Gets a remove/evicted event fired on hazelcast #addLocalEntryListener if a member joins a cluster?
- How to write client proxy for SPI and what the difference between client and server proxies?
- Hazelcast 3.4: how to avoid deserialization from near cache and get original item
- hazelcast : changing configuration programatically doesnt work
- Hazelcast: connecting to remote cluster
- IMap.destroy() is flaky (?)
- Hazelcast NearCache doesn't have the expected effect on performance
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Yes you can persist the ID and set it to the last value after node restarts. Depending on your needs of a continuous ID you might want to look into another external (my) project https://github.com/noctarius/snowcast which works differently.